Use these following commands to make a copy of an existing MySQL table to a new table:
CREATE TABLE new_table_name LIKE databasename.existing_table_name
INSERT INTO new_table_name SELECT * FROM databasename.existing_table_name
The databasename is optional if we are working in the same selected database.
1 Comment Already
Pingback & Trackback
Related Post
Leave Your Comments Below