How do I copy or clone or duplicate the data, structure, and indices of a MySQL table to a new one?
This is what I\'ve found so far.
This will copy the data
To create table structure only use this below code :
CREATE TABLE new_table LIKE current_table;
To copy data from table to another use this below code :
INSERT INTO new_table SELECT * FROM current_table;