Reputation: 621
I use the following command in MySQL to show the indexes of a table:
SHOW INDEX FROM someTable;
But the result doesn't indicate which index is the clustered index.
Is there a way to know which index is the clustered index?
Edit:
The following is the result of the command SHOW INDEX FROM sometable;
(I executed the command CREATE INDEX someindex ON sometable(name);
first):
Upvotes: 1
Views: 68
Reputation: 229158
There's no a way to directly display that, you have to do it manually according to this description.
I.e. issue a show create table tablename
, the clustered index is
Otherwise the clustered index is an internal index using an internal rowid for innodb.
Upvotes: 1