SQL Server 查询表的字段对应描述
时间:2021-07-01 10:21:17
帮助过:1人阅读
@tableName nvarchar(
20)
set @tableName = ‘User‘
select b.name, a.value
from sys.extended_properties a, sys.columns b
where a.major_id
= OBJECT_ID(
@tableName)
and a.major_id
= b.
object_id and a.minor_id
= b.column_id;
SQL Server 查询表的字段对应描述
标签:server 查询 use name 字段 select har nvarchar nbsp