How to drop unique in 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 I want to drop the unique key on email ,how? 回答1: Simply you can use the following SQL Script to delete the index in MySQL: alter table fuinfo drop index email; 回答2: There is a better way which don't need you to alter the table: mysql> DROP INDEX email ON fuinfo; where