sql server删除默认值(default)的方法

原文:sql server删除默认值(default)的方法   

不废话了-----

例如要删除student表的sex默认值

sp_help student;查询结果

找到constraiont_name的对应的值

最后

ALTER TABLE student
DROP DF__student__sex__34C8D9D1

不废话了-----

例如要删除student表的sex默认值

sp_help student;查询结果

找到constraiont_name的对应的值

最后

ALTER TABLE student
DROP DF__student__sex__34C8D9D1

猜你喜欢

转载自www.cnblogs.com/lonelyxmas/p/12072722.html