SQLStatistics

This function retrieves index information for a given table

Syntax :

RETCODE SQLStatistics (hstmt, catalogName, lenCatalogName, schemaName, lenSchemaName, tableName, unique, accuracy);

Arguments :

The arguments for SQLStatistics are listed in below table.

TypeNameDescription
SQLHSTMThstmtStatement handle.
SQLCHAR*catalogNameCatalog qualifier of a 3 part table name. This must be a NULL pointer or a zero length string.
SQLSMALLINTlenCatalogNameLength of catalogName. This must be set to 0.
SQLCHAR*SchemaNameBuffer that might contain a pattern-value to qualify the result set by schema name.
SQLSMALLINTlenSchemaNameLength of SchemaName
SQLCHAR*tableNameBuffer that might contain a pattern-value to qualify the result set by table name.
SQLSMALLINTlentableNameLength of tableName
SQLSMALLINTuniqueType of index information to return: SQL_INDEX_UNIQUE (Only unique indexes are returned) or SQL_INDEX_ALL (All indexes are returned.)
SQLSMALLINTaccuracyNot currently used, must be set to 0.
Page last modified on September 26, 2009, at 01:52 AM