Files
MySQL-Study/数据库6.2.md
2025-11-14 13:25:36 +08:00

331 B
Raw Permalink Blame History

一、查看索引

  1. show index from 表名
  2. show keys from 表名
  3. describe 表名
  4. show create table 表名

二、删除索引

语法:

DROP INDEX 索引名 ON 表名;

三、修改索引

MySQL中没有直接提供修改索引的命令

  1. 先删除原索引再创建同名索引