I have some indexes configured in a table entriesand I want to view / list them. Is there any way to do this?
entries
show index from entries;
more details: http://dev.mysql.com/doc/refman/5.0/en/show-index.html
Another way is to use information_schema.STATISTICS
SELECT * FROM information_schema.STATISTICS WHERE TABLE_SCHEMA='{$db}' AND TABLE_NAME='entries';
In addition to ajreal answer:
SHOW INDEX FROM entries
which, in my opinion, is the correct answer here, there is another useful command that I think is worth mentioning if you do not already know it:
SHOW CREATE TABLE entries
, , . , , , . , , , .
The request is as follows:
SHOW index FROM entries;
You can follow this link for more information: -
http://dev.mysql.com/doc/refman/5.0/en/show-index.html
See http://dev.mysql.com/doc/refman/5.0/en/show-index.html
Source: https://habr.com/ru/post/1780765/More articles:Entity Framework with POCO and FK pattern in the model - null reference exception - entity-frameworkDoctrine2 Best Practice, Should Organizations Use the Services? - doctrine2MVVM WPF Tutorials - c #The structure of the work model and transaction volume for Linq-To-Sql? - c #Using threads to optimize - performanceZend Framework Session Lost - phpSample Android using H2 - androidOpengl polygons - renderingИспользование Caliburn.Micro для привязки к под-свойствам - silverlightWhen someone picked a cherry from my git, commits and commits their own actions, how do I merge? - gitAll Articles