先删外键、后删主键 ALTER TABLE 表名DROP CONSTRAINT 约束名 约束名你自己定义的、如果不知道、可以输入违反约束的数据、下面会提示违反的约束名字、直接粘贴到上面语句
alter table mytable2 drop constraint 主键删除外键alter table AdItem drop constraint AdOrder_AdItem_FK1