mySQL query to search all tables within a database for a string?

后端 未结 5 1284
一生所求
一生所求 2020-11-30 05:03

Is there a mySQL query to search all tables within a database?

If not can you search all tables within a database from the mySQL workbench GUI?

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-30 05:51

    If you are using MySQL Workbench, you can do this by doing right click on the DB Schema you want to search into, and then "Search Table Data...".

    In there you can select the "Search using REXEXP" option, and then type your text of search as usual. It will provide the DB rows matching your specific text.

    You will need to check the "Search columns of all types" box as well.

提交回复
热议问题