Skip to content

Instantly share code, notes, and snippets.

@Macagare
Created October 29, 2012 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Macagare/3972432 to your computer and use it in GitHub Desktop.
Save Macagare/3972432 to your computer and use it in GitHub Desktop.
MYSQL: create a copy of another table
CREATE TABLE recipes_new LIKE production.recipes; INSERT recipes_new SELECT * FROM production.recipes;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment