odbc_primarykeys

(PHP 4, PHP 5, PHP 7)

odbc_primarykeysGets the primary keys for a table

˵��

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

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

����

connection_id

ODBC ���ӱ�ʶ������� odbc_connect()��

qualifier

owner

table

����ֵ

Returns an ODBC result identifier ������ʧ��ʱ���� FALSE.

The result set has the following columns:

  • TABLE_QUALIFIER
  • TABLE_OWNER
  • TABLE_NAME
  • COLUMN_NAME
  • KEY_SEQ
  • PK_NAME