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

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

 

b.name 为表名object

相关文章
相关标签/搜索