How to get query that would recreate sql table in PHPMyAdmin
问题 I have table on MySQL server and would like to get the SQL that would re-create the table. How do I get the query to recreate the SQL table? 回答1: mysqldump can do it - http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html You can use it like this: mysqldump [databasename] [tablename] > mysqltablesql.sql 回答2: MySQL supports SHOW CREATE TABLE to return the SQL that was used to create a table. From their docs: mysql> SHOW CREATE TABLE t; CREATE TABLE t ( id INT(11) default NULL auto_increment, s