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

mysqlmysqli database更新于 2025/12/10 5:32:17

要查看索引,语法如下 −

select *from information_schema.statistics where table_schema= yourDatabaseName;

这里,我使用的是数据库 ‘web’。查询如下以显示/查看索引 −

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

这将产生以下输出。”Web” 数据库中所有包含索引信息的表均可见 −


相关文章


有用资源