Created
May 21, 2015 09:37
-
-
Save AlexMcowkin/5f7a62dfb51daa33c8eb to your computer and use it in GitHub Desktop.
SQL: create copy of table
This file contains 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 table_new LIKE databasename.table_old; | |
INSERT table_new SELECT * FROM databasename.table_old; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment