已知列名 ELEMENT_ID ,查询所属表名称

Select O.name objectName, C.name ColumnName from sys.columns C inner join sys.objects O ON C.object_id=O.object_id 
where C.name like '%ELEMENT_ID%'order by O.name, C.name

 

 posted on 2018-03-22 13:21  仰光  阅读(619)  评论(0编辑  收藏  举报