语句删除数据库表中有默认字段值的字段
--查出字段约束名
select b.name
from syscolumns a,sysobjects b
where a.id=object_id('Edu_Discount') and b.id=a.cdefault and b.name like 'DF%'
--删除约束
alter table Edu_Discount DROP CONSTRAINT --DF__Edu_Disco__Is_Re__45F6932F
--删除字段
alter table Edu_Discount DROP COLUMN is_Refund