How to drop unique in MySQL?

Mask picture Mask · Oct 14, 2009 · Viewed 230.7k times · Source
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?

Answer

Wael Dalloul picture Wael Dalloul · Oct 14, 2009

Simply you can use the following SQL Script to delete the index in MySQL:

alter table fuinfo drop index email;