星空网 > 软件开发 > 数据库

【转】SQL Server查询字段说明

select c .name, isnull(ETP .value, '') as Des
FROM syscolumns c
inner join systypes t on c. xusertype = t. xusertype
left join sys. extended_properties ETP on ETP.major_id = c.id
and ETP .minor_id = c .colid
and ETP .name ='MS_Description'
left join syscomments CM on c. cdefault=CM .id
where c .id = object_id ('表名' )




原标题:【转】SQL Server查询字段说明

关键词:sql

sql
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流