Skip to content

Instantly share code, notes, and snippets.

@ibanez270dx
Last active August 29, 2015 14:11
Show Gist options
  • Save ibanez270dx/89a459830627ca4974b3 to your computer and use it in GitHub Desktop.
Save ibanez270dx/89a459830627ca4974b3 to your computer and use it in GitHub Desktop.
Copying a table in MYSQL
CREATE TABLE tablename_backup LIKE tablename; INSERT tablename_backup SELECT * FROM tablename;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment