odbc_statistics
Function • Params and return types changed in PHP 8.4
Retrieve statistics about a table.
odbc_statistics Function synopsis
odbc_statistics(
Odbc\Connection $odbc,
?string $catalog,
string $schema,
string $table,
int $unique,
int $accuracy
): Odbc\Result|false
Parameters
$odbc
TypeOdbc\Connection
$catalog
Type?string
The catalog ("qualifier" in ODBC 2 parlance).
$schema
Typestring
The schema ("owner" in ODBC 2 parlance).
$table
Typestring
The table name.
$unique
Typeint
The type of the index.
One of SQL_INDEX_UNIQUE or SQL_INDEX_ALL.
$accuracy
Typeint
One of SQL_ENSURE or SQL_QUICK.
The latter requests that the driver retrieve the CARDINALITY and
PAGES only if they are readily available from the server.
Return value
TypeOdbc\Result|false
Returns an ODBC result object or false on failure
The result set has the following columns:
Drivers can report additional columns.
Changes to the odbc_statistics Function
PHP 8.4
- Return type added:
Odbc\Result|false - Parameter type added for parameter #1 (
$odbc):Odbc\Connection
odbc_statistics(
- $odbc,
+ Odbc\Connection $odbc,
?string $catalog,
string $schema,
string $table,
int $unique,
int $accuracy
- )
+ ): Odbc\Result|false PHP 8.0
- Parameter name of parameter #1 changed:
$connection_idto$odbc - Parameter name of parameter #2 changed:
$qualifierto$catalog - Parameter type added for parameter #2 (
$catalog):?string - Parameter name of parameter #3 changed:
$ownerto$schema - Parameter type added for parameter #3 (
$schema):string - Parameter name of parameter #4 changed:
$nameto$table - Parameter type added for parameter #4 (
$table):string - Parameter type added for parameter #5 (
$unique):int - Parameter type added for parameter #6 (
$accuracy):int
odbc_statistics(
- $connection_id,
+ $odbc,
- $qualifier,
+ ?string $catalog,
- $owner,
+ string $schema,
- $name,
+ string $table,
- $unique,
+ int $unique,
- $accuracy
+ int $accuracy
) odbc_statistics Function Availability
odbc_statistics Function Availability| PHP Version | Availability |
|---|---|
| PHP 8.6Upcoming Release | Yes |
| PHP 8.5Supported (Latest) | Yes |
| PHP 8.4Supported | Yes |
| PHP 8.3Security-Fixes Only | Yes |
| PHP 8.2Security-Fixes Only | Yes |
| PHP 8.1Unsupported | Yes |
| PHP 8.0Unsupported | Yes |
| PHP 7.4Unsupported | Yes |
| PHP 7.3Unsupported | Yes |
| PHP 7.2Unsupported | Yes |
| PHP 7.1Unsupported | Yes |
| PHP 7.0Unsupported | Yes |
| PHP 5.6Unsupported | Yes |
| PHP 5.5Unsupported | Yes |
| PHP 5.4Unsupported | Yes |
| PHP 5.3Unsupported | Yes |