一、介绍
unique唯一索引,唯一且可以为空。主键唯一且不为空
注意:凡是带索引的都有加速查找的作用
二、添加唯一索引(创建完表后的操作)
create unique index 索引名称 on tb(列); alter table tb add unique index 索引名称(列)
三、删除唯一索引(创建完表后的操作)
alter table tb drop index 索引名称;