how to duplicate a mysql table along with data using phymyadmin
+1
A:
Construct a create table script, export it to .sql
file, change the table
name, and reimport it back.
Or better, take the original table schema, construct a create table script, and run the script in phpmyadmin, that should do.
Ngu Soon Hui
2009-12-01 11:01:26
A:
To copy a table, you can just execute the following SQL:
CREATE TABLE copyname SELECT * FROM originalname
PHPMyAdmin also has built-in functionality to export table data to a flat file.
Jacob Relkin
2009-12-01 11:02:01