1、mysql创建唯一索引:
ALTER TABLE `tableName` ADD UNIQUE INDEX 唯一索引名称 ( `列名1`,`列名2`);//唯一索引名称:unique_xx_xx
2、mysql创建普通索引:
alter table `tableName` add index 普通索引名称 (`列名1`,`列名2`); //普通索引名称:idx_xx_xx
3、mysql查询索引索引:
show index from 表名;
4、mysql删除索引:
drop index 索引名称 on 表名;