Last active
March 25, 2020 16:48
-
-
Save kiichi/0cca1eddd93f72afe3eefc11f8ee01a5 to your computer and use it in GitHub Desktop.
SQL Server Tips
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 Meetings target | |
USING ( | |
VALUES ('2') | |
) AS source (uuid) | |
ON target.uuid = source.uuid | |
WHEN MATCHED THEN | |
UPDATE SET target.topic = 'updated' | |
WHEN NOT MATCHED THEN | |
INSERT (uuid, topic) | |
VALUES (source.uuid,'inserted') | |
; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment