- 查看指定表格的索引使用
show index
命令:
show index from yourtable;
- 要查看特定schema的所有表格的索引,从
INFORMATION_SCHEMA
查询STATISTICS
表:
SELECT DISTINCT
TABLE_NAME,
INDEX_NAME
FROM INFORMATION_SCHEMA.STATISTICS
WHERE TABLE_SCHEMA = 'your_schema';
show index
命令:show index from yourtable;
INFORMATION_SCHEMA
查询STATISTICS
表:SELECT DISTINCT
TABLE_NAME,
INDEX_NAME
FROM INFORMATION_SCHEMA.STATISTICS
WHERE TABLE_SCHEMA = 'your_schema';