mysql table reference to 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;