How to generate DDL for all tables in a database in MySQL

后端 未结 3 1549
野性不改
野性不改 2021-01-30 20:54

How to generate the DDL for all tables in a database of MySQL at once. I know that the following query will output the DDL for a table. But I want DDL of all tables at once beca

3条回答
  •  鱼传尺愫
    2021-01-30 21:03

    You must get list of all the tables in database and then run this query. check this link to get list of all tables: http://php.net/manual/en/function.mysql-list-tables.php

提交回复
热议问题