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?
Use below query :
If you don't know the key_name then first try below query, you can get key_name.
OR
If you want to remove/drop primary key from mysql table, Use below query for that
Code Taken from: http://chandreshrana.blogspot.in/2015/10/how-to-remove-unique-key-from-mysql.html
DROP INDEX
column_name
ON table_nameSelect the database and query form the sql tab.This removes the index of the particular column. It worked for me in PHP MyADMIN
Try it to remove uique of a column:
Run this code in phpmyadmin and remove unique of column
Simply you can use the following SQL Script to delete the index in MySQL: