### 26.4.23 The INFORMATION\_SCHEMA INNODB\_TABLES Table

[]()

 The [`INNODB_TABLES`](information-schema-innodb-tables-table.html) table provides metadata about `InnoDB` tables.

 For related usage information and examples, see [Section 15.15.3, “InnoDB INFORMATION\_SCHEMA Schema Object Tables”](innodb-information-schema-system-tables.html).

 The [`INNODB_TABLES`](information-schema-innodb-tables-table.html) table has these columns:

* `TABLE_ID`

   An identifier for the `InnoDB` table. This value is unique across all databases in the instance.

* `NAME`

   The name of the table, preceded by the schema (database) name where appropriate (for example, `test/t1`). Names of databases and user tables are in the same case as they were originally defined, possibly influenced by the [`lower_case_table_names`](server-system-variables.html#sysvar_lower_case_table_names) setting.

* `FLAG`

   A numeric value that represents bit-level information about table format and storage characteristics.

* `N_COLS`

   The number of columns in the table. The number reported includes three hidden columns that are created by `InnoDB` (`DB_ROW_ID`, `DB_TRX_ID`, and `DB_ROLL_PTR`). The number reported also includes [virtual generated columns](glossary.html#glos_virtual_generated_column), if present.

* `SPACE`

   An identifier for the tablespace where the table resides. 0 means the `InnoDB` [system tablespace](glossary.html#glos_system_tablespace). Any other number represents either a [file-per-table](glossary.html#glos_file_per_table) tablespace or a general tablespace. This identifier stays the same after a [`TRUNCATE TABLE`](truncate-table.html) statement. For file-per-table tablespaces, this identifier is unique for tables across all databases in the instance.

* `ROW_FORMAT`

   The table's row format (`Compact`, `Redundant`, `Dynamic`, or `Compressed`).

* `ZIP_PAGE_SIZE`

   The zip page size. Applies only to tables with a row format of `Compressed`.

* `SPACE_TYPE`

   The type of tablespace to which the table belongs. Possible values include `System` for the system tablespace, `General` for general tablespaces, and `Single` for file-per-table tablespaces. Tables assigned to the system tablespace using [`CREATE TABLE`](create-table.html) or [`ALTER TABLE`](alter-table.html) `TABLESPACE=innodb_system` have a `SPACE_TYPE` of `General`. For more information, see [`CREATE TABLESPACE`](create-tablespace.html).

* `INSTANT_COLS`

   The number of columns in the table prior to adding the first instant column using `ALTER TABLE ... ADD COLUMN` with `ALGORITHM=INSTANT`.

#### Example

```
mysql> SELECT * FROM INFORMATION_SCHEMA.INNODB_TABLES WHERE TABLE_ID = 214\G
*************************** 1. row ***************************
     TABLE_ID: 214
         NAME: test/t1
         FLAG: 129
       N_COLS: 4
        SPACE: 233
   ROW_FORMAT: Compact
ZIP_PAGE_SIZE: 0
   SPACE_TYPE: General
 INSTANT_COLS: 0
```

#### Notes

* You must have the [`PROCESS`](privileges-provided.html#priv_process) privilege to query this table.

* Use the `INFORMATION_SCHEMA` [`COLUMNS`](information-schema-columns-table.html) table or the [`SHOW COLUMNS`](show-columns.html) statement to view additional information about the columns of this table, including data types and default values.

