Display all data of all tables

后端 未结 5 1934
萌比男神i
萌比男神i 2021-01-02 19:37

I want to display all data in my Database without writing a select for each table - how can I do this?

I do not want to do this:

select          


        
5条回答
  •  我在风中等你
    2021-01-02 20:29

    For mysql:

    1. Run SELECT information_schema.TABLES.TABLE_NAME FROM information_schema.TABLES where table_schema='db_name'

    2. Create a loop which will run select query for each table gotten from the first query.

提交回复
热议问题