Skip to main content

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 nameTypeDescription
TABLE_CATALOGvarchar(512)The catalog to which the table belongs.
TABLE_SCHEMAvarchar(64)The database to which the table belongs.
TABLE_NAMEvarchar(64)The name of the table.
TABLE_TYPEvarchar(64)The type of the table, including: SYSTEM VIEW, VIEW, BASE TABLE.
ENGINEvarchar(64)The storage engine type of the table.
VERSIONbigintInvalid value.
ROW_FORMATvarchar(10)Invalid value.
TABLE_ROWSbigintEstimated number of rows in the table.
AVG_ROW_LENGTHbigintAverage row size of the table.
DATA_LENGTHbigintEstimated size of the table.
MAX_DATA_LENGTHbigintInvalid value.
INDEX_LENGTHbigintInvalid value.
DATA_FREEbigintInvalid value.
AUTO_INCREMENTbigintInvalid value.
CREATE_TIMEdatetimeThe time when the table was created.
UPDATE_TIMEdatetimeThe time when the table data was last updated.
CHECK_TIMEdatetimeInvalid value.
TABLE_COLLATIONvarchar(32)Fixed value: utf-8.
CHECKSUMbigintInvalid value.
CREATE_OPTIONSvarchar(255)Invalid value.
TABLE_COMMENTvarchar(2048)Comments on the table.

Use DESCRIBE information_schema.tables; to inspect the schema in your warehouse.