I want to show all tables that have specified column name

前端 未结 8 2411
粉色の甜心
粉色の甜心 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:25

    Pretty simple on a per database level

    Use DatabaseName
    Select * From INFORMATION_SCHEMA.COLUMNS Where column_name = 'ColName'
    

提交回复
热议问题