I want to show all tables that have specified column name

前端 未结 8 2425
粉色の甜心
粉色の甜心 2020-12-12 23:49

How can I get a list of all the tables that have a specific column name?

8条回答
  •  爱一瞬间的悲伤
    2020-12-13 00:24

    You can find what you're looking for in the information schema: SQL Server 2005 System Tables and Views I think you need SQL Server 2005 or higher to use the approach described in this article, but a similar method can be used for earlier versions.

提交回复
热议问题