Home >Database >Mysql Tutorial >Display/view indexes in MySQL database

Display/view indexes in MySQL database

WBOY
WBOYforward
2023-09-13 12:05:061023browse

To view the index, the syntax is as follows -

select *from information_schema.statistics where table_schema= yourDatabaseName;

Here, I am using database "web". The query to show/view the index is as follows -

select *from information_schema.statistics where table_schema= 'web';

This will produce the following output. All tables in the "Web" database that contain index information are visible -

显示/查看 MySQL 数据库中的索引

显示/查看 MySQL 数据库中的索引

The above is the detailed content of Display/view indexes in MySQL database. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete