In MySQL, how can we tell if an index of a table is clustered or not?
问题 In MySQL, how can we tell if an index of a table is clustered or not? We can use show index from table-name to get information about the table's indexes. But I don't find it shows whether each index is clustered or nonclustered. This is for the purpose of If a table in MySQL has any index, must the table have a clustered index? 回答1: In the default storage engine, InnoDB, the PRIMARY KEY index is always the clustered index. If you don't have a PRIMARY KEY, it's the first UNIQUE KEY index on