SQL Server查詢某字段在哪些表中

select a.name 表名,b.name 列名
from sys.objects a,sys.columns b
where object_name(b.object_id)=a.name
and b.name='taskNo'
and type='u'object

相關文章
相關標籤/搜索