PHP 8.3.4 Released!

odbc_statistics

(PHP 4, PHP 5, PHP 7, PHP 8)

odbc_statisticsRecupera le statistiche su una tabella

Descrizione

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

Recupera le statistiche su una tabella e i suoi indici.

Elenco dei parametri

connection_id

L'identificativo di connessione ODBC, vedere odbc_connect() per ulteriori dettagli.

qualifier

Il qualificatore.

owner

Il proprietario.

table_name

Il nome della tabella.

unique

L'attributo unico.

accuracy

La precisione.

Valori restituiti

Restituisce un identificatore di risultato o false in caso di fallimento.

Il set di risultati ha le seguenti colonne:

  • TABLE_QUALIFIER
  • TABLE_OWNER
  • TABLE_NAME
  • NON_UNIQUE
  • INDEX_QUALIFIER
  • INDEX_NAME
  • TYPE
  • SEQ_IN_INDEX
  • COLUMN_NAME
  • COLLATION
  • CARDINALITY
  • PAGES
  • FILTER_CONDITION

Il set di risultati è ordinato per NON_UNIQUE, TYPE, INDEX_QUALIFIER, INDEX_NAME e SEQ_IN_INDEX.

add a note

User Contributed Notes 1 note

up
2
eion at bigfoot dot com
12 years ago
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
To Top