odbc_primarykeys

PHP 4, PHP 5, PHP 7, PHP 8
odbc_primarykeys - Gets the primary keys for a table
Manual
Code Examples

Example #1 List primary Keys of a Column

Result: Array ( [TABLE_CAT] => TutorialDB [TABLE_SCHEM] => dbo [TABLE_NAME] => TEST [COLUMN_NAME] => id [KEY_SEQ] => 1 [PK_NAME] => PK__TEST__3213E83FE141F843 )
PHP Version: