SELECT b.name as 字段名
,Type_name(b.xusertype) as 字段类型
, Isnull(c.VALUE,‘‘) as 字段说明
FROM sysobjects a join syscolumns b on a.id = b.id
JOIN sys.extended_properties c
ON b.id = c.major_id
AND b.colid = c.minor_id
WHERE a.id = Object_id(‘gbpm.JLFFORM3‘) --要查询的表改成你要查询表的名称
ORDER BY b.colid
时间: 2024-10-16 20:35:54