sql 系统函数

--查看表备注
SELECT a.column_id AS No, a.name AS 列名, isnull(g.[value],'-') AS 说明 FROM sys.columns a left join sys.extended_properties g on (a.object_id = g.major_id AND g.minor_id = a.column_id) WHERE object_id = (SELECT object_id FROM sys.tables WHERE name = 'STK_In')

  

posted @ 2017-05-24 11:21  微笑代表淡定.Net  阅读(95)  评论(0编辑  收藏  举报