|
odbc_primarykeysGets the primary keys for a table Description
resourcefalse odbc_primarykeys(
resource $odbc ,stringnull $catalog ,string $schema ,string $table ) Returns a result identifier that can be used to fetch the column names that comprise the primary key for a table. Parameters
Return Values
Returns an ODBC result identifier or The result set has the following columns:
The result set is ordered by 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
|