Purpose
information_schema.TABLES displays information about tables.
Related tables/views
__all_table_v2
__all_table_history
Fields
| Field | Type | Nullable? | Description |
|---|---|---|---|
| TABLE_CATALOG | varchar(3) | NO | The name of the catalog to which the table belongs. |
| TABLE_SCHEMA | varchar(128) | NO | The name of the database. |
| TABLE_NAME | varchar(256) | NO | The name of the table. |
| TABLE_TYPE | varchar(12) | NO | The type of the table. |
| ENGINE | null | NO | The type of the storage engine that is used. |
| VERSION | null | NO | The version. |
| ROW_FORMAT | null | NO | The row format. |
| TABLE_ROWS | decimal(20,0) | NO | The number of rows in the table. |
| AVG_ROW_LENGTH | DECIMAL(24,4) | NO | The average length of the rows. |
| DATA_LENGTH | decimal(20,0) | NO | The data length. |
| MAX_DATA_LENGTH | null | NO | The maximum data length. |
| INDEX_LENGTH | null | NO | The index length. |
| DATA_FREE | null | NO | The size of the remaining space. |
| AUTO_INCREMENT | null | NO | The current auto-increment value. |
| CREATE_TIME | timestamp(6) | NO | The time when the table was created. |
| UPDATE_TIME | timestamp(6) | NO | The time when the table was last updated. |
| CHECK_TIME | null | NO | The time when the table was last checked. |
| TABLE_COLLATION | varchar(128) | NO | The name of the collation for the table. |
| CHECKSUM | bigint(0) unsigned | NO | The checksum. |
| CREATE_OPTIONS | null | NO | The creation options. |
| TABLE_COMMENT | varchar(4096) | NO | The comment for the table. |