select [name] from [TPMS_PRD].[dbo].sysobjects 
where id in(select id from [TPMS_PRD].[dbo].syscolumns Where name='supplierid')

包含SupplierId这个字段的所有表

格式如下:

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

@陈卧龙的博客

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2022-02-24
  • 2022-12-23
相关资源
相似解决方案