select a.name tabname,b.value,a1.name from sysobjects a left join sys.columns a1 on a.id = a1.object_id
left join sys.extended_properties b on b.major_id = a.id and b.minor_id = a1.column_id
where a.name=‘表名‘
sysobjects:系统表 记录表名
sys.columns :记录表字段名
extended_properties : 表字段描述
原文地址:https://www.cnblogs.com/hu-kang/p/10688968.html
时间: 2024-11-05 12:08:30