Created
December 20, 2019 06:49
-
-
Save larshp/d53cbc8cc414e86bfc9fa9e1b6f3364e to your computer and use it in GitHub Desktop.
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
MERGE INTO schema.table t | |
USING | |
(SELECT ? field1, ? field2 FROM dual) s | |
ON | |
(t.field1 = s.field1) | |
WHEN MATCHED THEN | |
UPDATE SET t.field2 = s.field2 | |
WHEN NOT MATCHED THEN | |
INSERT (field1, field2) values (s.field1, s.field2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment