odbc_foreignkeys

int odbc_foreignkeys(resource conn, string primary_catalog, 
string primary_owner, string primary_table, string foreign_catalog, 
string foreign_owner, string foreign_table) 
conn Connection ID
primary_catalog Primary key database
primary_owner Primary key owner
primary_table Primary key table
foreign_catalog Foreign key database
foreign_owner Foreign key owner
foreign_table Foreign key table

Displays foreign key information.

Returns:

Result identifier; FALSE on error

Description:

Retrieves information about foreign keys in a table. Depending on the order of the foreign key table and primary key table, different information is returned. A large number of columns are returned in the result set: PKTABLE_CAT, PKTABLE_SCHEM ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.