Purpose
The information_schema.STATISTICS view provides information about table indexes.
Note
This view is introduced since OceanBase Database V1.4.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TABLE_CATALOG | varchar(512) | NO | The name of the catalog to which the table containing the column belongs. The value 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) | NO | The name of the collation. |
| CARDINALITY | bigint(0) | NO | The estimated number of unique values in the index. |
| SUB_PART | bigint(20) | NO | The index prefix, which 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) | NO | Indicates how the key is packed. |
| NULLABLE | varchar(3) | NO | Indicates whether this column can contain NULL values. |
| INDEX_TYPE | varchar(16) | NO | The data structure type used by the index. |
| COMMENT | varchar(16) | NO | The comments. |
| INDEX_COMMENT | text | NO | The index comment. |
| IS_VISIBLE | varchar(3) | NO | Indicates whether the index is visible. |