1. Copy only the table structure
Only copy the table structure, including the primary key, index, but will not copy the table data.
create table tableName like someTable;
2. Only copy table data.
Copy the general structure and all data of the table, without copying the primary key, index, etc.
create table tableName select * from someTable;
3. Completely copy the table structure + data to
complete in two steps, first copy the table structure, and then insert the data.
create table tableName like someTable;
insert into tableName select * from someTable;