331 B
331 B
一、查看索引
show index from 表名;show keys from 表名;describe 表名;show create table 表名;
二、删除索引
语法:
DROP INDEX 索引名 ON 表名;
三、修改索引
MySQL中没有直接提供修改索引的命令
- 先删除原索引再创建同名索引
show index from 表名;show keys from 表名;describe 表名;show create table 表名;语法:
DROP INDEX 索引名 ON 表名;
MySQL中没有直接提供修改索引的命令