Feature
This view displays the information about table indexes.
Fields
| Field | Type | Nullable | Description |
|---|---|---|---|
| TABLE_CATALOG | varchar(512) | NO | The name of the catalog to which the table belongs. The value of this field is always def. |
| TABLE_SCHEMA | varchar(128) | NO | The name of the database. |
| TABLE_NAME | varchar(256) | NO | The name of the table. |
| NON_UNIQUE | bigint(20) | NO | Indicates whether the index is unique. |
| INDEX_SCHEMA | varchar(128) | NO | The name of the database. |
| INDEX_NAME | varchar(256) | NO | The type of the index. |
| SEQ_IN_INDEX | bigint(20) unsigned | NO | The sequence number of the index. |
| COLUMN_NAME | varchar(128) | NO | The name of the column. |
| COLLATION | varchar(1) | YES | The name of the collation. |
| CARDINALITY | bigint(0) | YES | The estimated number of unique values in the index. |
| SUB_PART | bigint(20) | YES | The index prefix. That is, the number of indexed characters if the column is only partly indexed. The value is NULL if the entire column is indexed. |
| PACKED | varchar(10) | YES | Indicates how the key is packed. |
| NULLABLE | varchar(3) | NO | Indicates whether NULL is allowed for the column. |
| INDEX_TYPE | varchar(16) | NO | The data structure type used by the index. |
| COMMENT | varchar(16) | YES | The comment. |
| INDEX_COMMENT | text | NO | The index comment. |
| IS_VISIBLE | varchar(3) | NO | Indicates whether the index is visible. |