a.首先你的语句是错误的。
删除列的语句是:
alter table pexamdetail drop column col
b.
直接用上面的语句会出错,提示的错误信息内,有约束名cons_name
(用sp_help 'pexamdetail' 也可得到cons_name)
alter table pexamdetail drop constraint cons_name
删除约束,再执行语句a
删除列的语句是:
alter table pexamdetail drop column col
b.
直接用上面的语句会出错,提示的错误信息内,有约束名cons_name
(用sp_help 'pexamdetail' 也可得到cons_name)
alter table pexamdetail drop constraint cons_name
删除约束,再执行语句a
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货