查询某一列在哪些表中

select name 
from sysobjects a
where exists(
        select 1 from syscolumns b
        where name = 'customerid'
        and b.id =a.id
    )

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注