时间:2021-07-01 10:21:17 帮助过:35人阅读
SELECT TABLE_SCHEMA AS `SCHEMA`,
TABLE_NAME AS `Table`,
index_name AS `Index`,
GROUP_CONCAT(column_name ORDER BY seq_in_index) AS `Columns`
FROM information_schema.statistics
WHERE index_name=‘appkey_mid_gmid‘
GROUP BY TABLE_NAME,index_name;
mysql找到所有索引
标签:schema name index order format col sql mat sel