|
odbc_primarykeysGets the primary keys for a table Description
Odbc\Resultfalse odbc_primarykeys(
Odbc\Connection $odbc,stringnull $catalog,string $schema,string $table) Returns a result object that can be used to fetch the column names that comprise the primary key for a table. Parameters
Return Values
Returns an ODBC result object or The result set has the following columns:
The result set is ordered by Changelog
ExamplesExample #1 List primary Keys of a Column The above example will output something similar to:
Array
(
[TABLE_CAT] => TutorialDB
[TABLE_SCHEM] => dbo
[TABLE_NAME] => TEST
[COLUMN_NAME] => id
[KEY_SEQ] => 1
[PK_NAME] => PK__TEST__3213E83FE141F843
)
See Also
|