728x90
반응형
SHOW INDEX Statement
SHOW {INDEX | INDEXES | KEYS}
{FROM | IN} tbl_name
[{FROM | IN} db_name]
[WHERE expr]
mysql> SHOW INDEX FROM City\G
*************************** 1. row ***************************
Table: city
Non_unique: 0
Key_name: PRIMARY
Seq_in_index: 1
Column_name: ID
Collation: A
Cardinality: 4188
Sub_part: NULL
Packed: NULL
Null:
Index_type: BTREE
Comment:
Index_comment:
*************************** 2. row ***************************
Table: city
Non_unique: 1
Key_name: CountryCode
Seq_in_index: 1
Column_name: CountryCode
Collation: A
Cardinality: 232
Sub_part: NULL
Packed: NULL
Null:
Index_type: BTREE
Comment:
Index_comment:
728x90
반응형
'Database > MySQL' 카테고리의 다른 글
[MySQL] GROUP BY Optimization (0) | 2023.12.24 |
---|---|
[MySQL] ORDER BY Optimization (1) | 2023.12.06 |
[MySQL] binlog to SQL(텍스트) 변환 (0) | 2022.05.09 |
MariaDB sharding using docker (0) | 2020.07.14 |
MySQL Replication 연결 (0) | 2019.10.22 |