sql根据字段查询包含哪些表

select b.name,a.* from sys.columns a,sys.tables b
where a.object_id = b.object_id and a.name = 'id'

b.name 为表名

原文地址:https://www.cnblogs.com/LessIsMoreZ/p/9211744.html