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