如何在Mysql中删除唯一约束?

时间:2014-01-23 11:16:20

标签: mysql

我的代码

alter table mytable drop unique constraint uk_mytable;

但显示以下错误...

"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'unique constraint username' at line 1"

1 个答案:

答案 0 :(得分:1)

试试这个

alter table mytable drop uk_mytable;