Created
June 15, 2017 21:48
-
-
Save alpha1/b22f7de1df627f6ee142d8030ce2846c to your computer and use it in GitHub Desktop.
Clone Database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `new_db`.`new_table` LIKE `old_db`.`old_table`; | |
INSERT `new_db`.`new_db` SELECT * FROM `old_db`.`old_table-db`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment