MSSQL在知道列名的情况下查询在哪个一数据表里
select tab.name
from syscolumns as col
inner join sysobjects as tab on col.id=tab.id
where col.name='bm'
查询列名在哪一个表col.name=“列名”
展开全文
select tab.name
from syscolumns as col
inner join sysobjects as tab on col.id=tab.id
where col.name='bm'
查询列名在哪一个表col.name=“列名”
发表评论