Home > PHP > Function > ODBC > odbc_primarykeys()

odbc_primarykeys()

odbc_primarykeys - Gets the primary keys for a table

Syntax

resource odbc_primarykeys (resource $connection_id, string $qualifier, string $owner, string $table)

Arguments

  • connection_id - The ODBC connection identifier, see odbc_connect() for details.
  • qualifier
  • owner
  • table

Description

Returns a result identifier that can be used to fetch the column names that comprise the primary key for a table.

Version

PHP 4, 5

Return value

Returns an ODBC result identifier or FALSE on failure.