1 select ROW_NUMBER() OVER (ORDER BY a.name) AS 序号, 2 a.name AS 表名, 3 CONVERT(NVARCHAR(100),isnull(g.[value],'-')) AS 说明 4 from 5 sys.tables a left join sys.extended_properties g 6 on (a.object_id = g.major_id AND g.minor_id = 0)
1 select ROW_NUMBER() OVER (ORDER BY a.name) AS 序号, 2 a.name AS 表名, 3 CONVERT(NVARCHAR(100),isnull(g.[value],'-')) AS 说明 4 from 5 sys.tables a left join sys.extended_properties g 6 on (a.object_id = g.major_id AND g.minor_id = 0)