Skip to content

Instantly share code, notes, and snippets.

@shaik2many
Created January 9, 2013 15:52
Show Gist options
  • Save shaik2many/4494212 to your computer and use it in GitHub Desktop.
Save shaik2many/4494212 to your computer and use it in GitHub Desktop.
INSERT INTO table1(column1, column2, ...)
SELECT column3, column4, ...
FROM table2
--Read more: http://www.1keydata.com/sql/sql-insert-into-select.html#ixzz2HUbbJ4vR
INSERT INTO table1
SELECT * FROM table1@dev; --if the column order match
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment