SQL - SHOW INDEX - как узнать индекс конкретной таблицы

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

SQL - SHOW INDEX - как узнать индекс конкретной таблицы

Узнать индекс конкретной таблицы можно через команду:

mysql> SHOW INDEX FROM yourtable;

Узнать индексы сразу во всех базах:

mysql> use information_schema;
mysql> SELECT * FROM statistics;