List all tables containing a given column name

后端 未结 4 1827
执念已碎
执念已碎 2021-02-13 17:40

How do a I list all tables containing a given column name? I\'m using Mysql version 4.1.13-nt-log. I know versions less than 5 dont have an information_scheme DB.

4条回答
  •  一生所求
    2021-02-13 18:03

    select table_name,column_name,data_type,data_length 
    from user_tab_columns 
    where column_name LIKE 'WHATEVER_U_WANT'
    ;
    

提交回复
热议问题