一些有用的Sql语句积累(更新中)

  查找某个字段在哪张表里

    select [name] from [库名].[dbo].sysobjects where id in(select id from [库名].[dbo].syscolumns Where name=’字段名’)