如何在 MySQL 中删除唯一性?

2021-12-21 00:00:00 indexing mysql sql-drop
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

我想删除 email 上的唯一键,怎么办?

I want to drop the unique key on email,how?

推荐答案

简单的你可以使用下面的 SQL Script 来删除 MySQL 中的索引:

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

alter table fuinfo drop index email;

相关文章