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

Display/view indexes in MySQL database

WBOY
Release: 2023-09-13 12:05:06
forward
1036 people have browsed it

To view the index, the syntax is as follows -

select *from information_schema.statistics where table_schema= yourDatabaseName;
Copy after login

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';
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template