table_constraints
This table exists for MySQL client compatibility and returns no rows. It does not provide a table constraint inventory.
Run the query in the warehouse SQL Editor or a connected SQL client:
SELECT * FROM information_schema.table_constraints LIMIT 10;
Database
information_schema
Table information
| Column name | Type | Description |
|---|---|---|
CONSTRAINT_CATALOG | varchar(512) | Reserved for MySQL compatibility. |
CONSTRAINT_SCHEMA | varchar(64) | Reserved for MySQL compatibility. |
CONSTRAINT_NAME | varchar(64) | Reserved for MySQL compatibility. |
TABLE_SCHEMA | varchar(64) | Reserved for MySQL compatibility. |
TABLE_NAME | varchar(64) | Reserved for MySQL compatibility. |
CONSTRAINT_TYPE | varchar(64) | Reserved for MySQL compatibility. |
Use DESCRIBE information_schema.table_constraints; to inspect the schema in your warehouse.