--查出字段约束名

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

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-09-15
  • 2021-11-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案