Information Schema TABLE_CONSTRAINTS Table
The Information Schema TABLE_CONSTRAINTS
table contains information about tables that have constraints.
It has the following columns:
Column
Description
Column
Description
CONSTRAINT_CATALOG
Always def.
CONSTRAINT_SCHEMA
Database name containing the constraint.
CONSTRAINT_NAME
Constraint name.
TABLE_SCHEMA
Database name.
TABLE_NAME
Table name.
CONSTRAINT_TYPE
Type of constraint; one of UNIQUE, PRIMARY KEY, FOREIGN KEY or CHECK.
The REFERENTIAL_CONSTRAINTS table has more information about foreign keys.
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?