Guest User

Untitled

a guest
Feb 25th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. MERGE TargetTable target
  2. USING (SELECT DISTINCT X FROM SourceTableImport) source
  3. ON target.Key = source.Key
  4. WHEN MATCHED THEN
  5. UPDATE SET ...
  6. WHEN NOT MATCHED BY TARGET THEN
  7. INSERT (...) VALUES (...);
Add Comment
Please, Sign In to add comment