mysql create table with fields from another table code example
Example: how to create a table based on another table in mysql
Press CTRL+C to copy CREATE TABLE new_tbl [AS] SELECT * FROM orig_tbl;
Press CTRL+C to copy CREATE TABLE new_tbl [AS] SELECT * FROM orig_tbl;