当前位置:Gxlcms > 数据库问题 > SQLServer 2008 R2查看字段约束

SQLServer 2008 R2查看字段约束

时间:2021-07-01 10:21:17 帮助过:6人阅读

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‘

 

SQLServer 2008 R2查看字段约束

标签:删除   nbsp   08 r2   sys   table   join   obj   field   efault   

人气教程排行