如何在MySQL中删除唯一? [英] How to drop unique in MySQL?
本文介绍了如何在MySQL中删除唯一?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Create Table: CREATE TABLE `fuinfo` (
`fid` int(10) unsigned NOT NULL,
`name` varchar(40) NOT NULL,
`email` varchar(128) NOT NULL,
UNIQUE KEY `email` (`email`),
UNIQUE KEY `fid` (`fid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8
我想删除电子邮件<上的唯一密钥/ code>,怎么做?
I want to drop the unique key on email
,how?
推荐答案
只需使用以下SQL脚本删除MySQL中的索引: / p>
Simply you can use the following SQL Script to delete the index in MySQL:
alter table fuinfo drop index email;
这篇关于如何在MySQL中删除唯一?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文