我们如何删除多列UNIQUE索引?
与我们从表中删除UNIQUE约束一样,也可以删除多列UNIQUE索引。
示例
在此示例中,通过以下查询,我们删除了表“employee”上的多列UNIQUE索引-
mysql> DROP index id_fname_lname on employee; Records: 0 Duplicates: 0 Warnings: 0
可以从以下查询的结果集中观察到UNIQUE索引的删除-
mysql> show index from employee; Empty set (0.00 sec) mysql> describe employee; +------------+-------------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +------------+-------------+------+-----+---------+-------+ | empid | int(11) | YES | | NULL | | | first_name | varchar(20) | YES | | NULL | | | last_name | varchar(20) | YES | | NULL | | +------------+-------------+------+-----+---------+-------+ 3 rows in set (0.08 sec)
热门推荐
10 新人红包祝福语简短精辟
11 幼师给毕业祝福语简短
12 生日高考祝福语妹妹简短
13 下飞机祝福语简短英文
14 元宵发客户祝福语简短
15 爸妈金婚文案祝福语简短
16 新郎朋友红包祝福语简短
17 虎年五一祝福语大全简短
18 出阁宴祝福语姐姐简短