1.创建索引
create index 索引名 on 表名(列名);
eg: create index user_name_index on user(name);
2.查看索引
show index from 表名;
show keys from 表名;
3.删除索引
drop index 索引名 on 表名
1.创建索引
create index 索引名 on 表名(列名);
eg: create index user_name_index on user(name);
2.查看索引
show index from 表名;
show keys from 表名;
3.删除索引
drop index 索引名 on 表名
5077
1万+
3万+
4万+

被折叠的 条评论
为什么被折叠?