ODBC 函数
在线手册:中文 英文
PHP手册

odbc_statistics

(PHP 4, PHP 5)

odbc_statisticsRetrieve statistics about a table

说明

resource odbc_statistics ( resource $connection_id , string $qualifier , string $owner , string $table_name , int $unique , int $accuracy )

Get statistics about a table and its indexes.

参数

connection_id

ODBC 连接标识符,详见 odbc_connect()

qualifier

The qualifier.

owner

The owner.

table_name

The table name.

unique

The unique attribute.

accuracy

The accuracy.

返回值

Returns an ODBC result identifier 或者在失败时返回 FALSE.

The result set has the following columns:

The result set is ordered by NON_UNIQUE, TYPE, INDEX_QUALIFIER, INDEX_NAME and SEQ_IN_INDEX.


ODBC 函数
在线手册:中文 英文
PHP手册
PHP手册 - N: Retrieve statistics about a table

用户评论:

eion at bigfoot dot com (19-Apr-2011 11:36)

A couple of the function parameters are undefined:

unique - determines whether you want to return just unique indexes or all indexes.  Use SQL_INDEX_UNIQUE or SQL_INDEX_ALL for this parameter

accuracy - whether you wan to return everything there is to know about the table or just what information is readily available.  Use SQL_ENSURE or SQL_QUICK for this parameter

For a bit more info about this function see the ODBC function SQLStatistics() at http://msdn.microsoft.com/en-us/library/ms711022(v=vs.85).aspx