SQLServer 2008 R2 删除字段前检查字段的约束:
select a.name,b.name as cname from syscolumns a left join sysobjects b on a.cdefault=b.id where a.id=object_id(‘TableName‘) and a.name=‘FieldName‘
原文地址:https://www.cnblogs.com/talentzemin/p/10502653.html
时间: 2024-11-09 01:41:36