直接删除

语法

  1. drop index 索引名 on 表名;

例子

  1. drop index idx_name on student;

修改表时删除

语法

  1. alter table 表名 drop index 索引名;

例子

  1. alter table student add unique(telephone);