Created
March 17, 2020 23:42
-
-
Save peacefixation/909b904b128182371a7a3d7122d7e643 to your computer and use it in GitHub Desktop.
SQL insert from select
This file contains hidden or 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 table1(t1_col1, t1_col2, t1_col3) | |
SELECT t2_col1, t2_col2, t2_col3 | |
FROM table2 | |
WHERE condition = foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment