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
odbc_statistics
(PHP 4, PHP 5)
odbc_statistics — Calcul des statistiques sur une table
Description
resource odbc_statistics
( resource
$connection_id
, string $qualifier
, string $owner
, string $table_name
, int $unique
, int $accuracy
)Calcul des statistiques sur une table.
Liste de paramètres
-
connection_id -
L'identifiant de connexion ODBC, voir la documentation de la fonction odbc_connect() pour plus de détails.
-
qualifier -
Le qualifieur.
-
owner -
Le propriétaire.
-
table_name -
Le nom de la table.
-
unique -
L'attribut
unique. -
accuracy -
L'attribut
accuracy.
Valeurs de retour
Retourne un identifiant de résultat ODBC ou FALSE si une erreur survient.
Le résultat possède les colonnes suivantes :
- TABLE_QUALIFIER
- TABLE_OWNER
- TABLE_NAME
- NON_UNIQUE
- INDEX_QUALIFIER
- INDEX_NAME
- TYPE
- SEQ_IN_INDEX
- COLUMN_NAME
- COLLATION
- CARDINALITY
- PAGES
- FILTER_CONDITION
Le résultat est ordonné par NON_UNIQUE, TYPE, INDEX_QUALIFIER, INDEX_NAME et SEQ_IN_INDEX.
eion at bigfoot dot com
19-Apr-2011 03:36
