Created
November 7, 2011 12:39
-
-
Save managai/1344835 to your computer and use it in GitHub Desktop.
(SQL) copy data between tables
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
insert | |
into table2 | |
select * | |
from table1 | |
######### | |
insert | |
into table2 | |
( col1 | |
, col2 | |
, col3 ) | |
select field3 | |
, ( field7 + field8 ) * 9.37 | |
, 0 | |
from table1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment