SQL Server查询数据库所有表名与表说明

SQL

select a.name tableName, b.value tableComment
from sysobjects a
LEFT JOIN sys.extended_properties b ON a.id = b.major_id AND b.minor_id = 0
where xtype = 'u'

 

posted @ 2020-10-10 17:02  jardeng  阅读(1263)  评论(3)    收藏  举报