tables
Inspect tables visible to your SQL user, including their database, type, and available storage metadata.
Run the query in the warehouse SQL Editor or a connected SQL client:
SELECT * FROM information_schema.tables LIMIT 10;
Database
information_schema
Table information
| Column name | Type | Description |
|---|---|---|
TABLE_CATALOG | varchar(512) | The catalog to which the table belongs. |
TABLE_SCHEMA | varchar(64) | The database to which the table belongs. |
TABLE_NAME | varchar(64) | The name of the table. |
TABLE_TYPE | varchar(64) | The type of the table, including: SYSTEM VIEW, VIEW, BASE TABLE. |
ENGINE | varchar(64) | The storage engine type of the table. |
VERSION | bigint | Invalid value. |
ROW_FORMAT | varchar(10) | Invalid value. |
TABLE_ROWS | bigint | Estimated number of rows in the table. |
AVG_ROW_LENGTH | bigint | Average row size of the table. |
DATA_LENGTH | bigint | Estimated size of the table. |
MAX_DATA_LENGTH | bigint | Invalid value. |
INDEX_LENGTH | bigint | Invalid value. |
DATA_FREE | bigint | Invalid value. |
AUTO_INCREMENT | bigint | Invalid value. |
CREATE_TIME | datetime | The time when the table was created. |
UPDATE_TIME | datetime | The time when the table data was last updated. |
CHECK_TIME | datetime | Invalid value. |
TABLE_COLLATION | varchar(32) | Fixed value: utf-8. |
CHECKSUM | bigint | Invalid value. |
CREATE_OPTIONS | varchar(255) | Invalid value. |
TABLE_COMMENT | varchar(2048) | Comments on the table. |
Use DESCRIBE information_schema.tables; to inspect the schema in your warehouse.