To copy a table in MySQL you can use the following snippet.

Sample MySQL

CREATE TABLE NEWTABLE LIKE OLDTABLE; 
INSERT NEWTABLE SELECT * FROM OLDTABLE;

3 thought on “How to copy a table in MySQL”

Leave a Reply