How to duplicate a table with keys & other structure features retained? including primary key, foreign keys, and indexes.
Can this be done with a single MySQL query?
Following query creates and duplicates data.
CREATE TABLE table2 SELECT * FROM table1