如何使用Drop删除带有默认值的字段
(1)先删除约束名:
alter table c drop DF__t__f2__5EDF0F2E
(2)再删除列:
alter table c drop column f2
如果只是修改列的数据类型则直接:
alter table c alter column
f2 smallint default 0
go
alter table c drop DF__t__f2__5EDF0F2E
(2)再删除列:
alter table c drop column f2
如果只是修改列的数据类型则直接:
alter table c alter column
f2 smallint default 0
go
posted on 2007-11-14 16:23 littlebamboo 阅读(296) 评论(0) 收藏 举报
浙公网安备 33010602011771号