List all tables containing a given column name

后端 未结 4 1845
执念已碎
执念已碎 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 17:51

    try this:

    mysqldump -u root -p –all-databases –single-transaction > all.sql
    

    and then do the searching the old-school way in a text editor with find


    also found this... looks promising, but I'm not sure how ambitious you are

    http://mike.kruckenberg.com/presentations/Creating_INFORMATION_SCHEMA.pdf

提交回复
热议问题