标签: sql-server
我有一个表,其中电子邮件作为唯一键约束。我想放下它,怎么可能?
尝试:DROP INDEX email_2 ON users;
DROP INDEX email_2 ON users;
没有运气
An explicit `DROP INDEX` is not allowed on index 'users.email_2'. It is being used for `UNIQUE KEY` constraint enforcement.
答案 0 :(得分:4)
您可以通过删除约束将其删除。
insert()