I want to copy a table's schema as well as the data within that table to another database table in another database on a live server. How could I do this?
If you want to copy a table from one Database to another database , You can simply do as below.
CREATE TABLE db2.table LIKE db1.table; INSERT INTO db2.table SELECT * FROM db1.table;
2.1m questions
2.1m answers
60 comments
57.0k users