Check out example codes for "how to create a table based on another table in mysql". It will help you in understanding the concepts better.

Code Example 1

Press CTRL+C to copy CREATE TABLE new_tbl [AS] SELECT * FROM orig_tbl;

Learn ReactJs, React Native from akashmittal.com