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
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