查询MySQL数据库中所有表的索引

查询库中表的索引

select TABLE_NAME, INDEX_NAME, GROUP_CONCAT(COLUMN_NAME) as INDEX_COLUMN
from
information_schema.statistics
where
table_schema='库名'
GROUP BY TABLE_NAME, INDEX_NAME;

原文地址:https://www.cnblogs.com/shijiaoyun/p/13433171.html