Guest User

Untitled

a guest
Oct 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. insert into <Таблица_1>
  2. select * from <Таблица_2>
  3. EXCEPT select * from <Таблица_1>
  4.  
  5. MERGE <Таблица_1> AS T1
  6. USING <Таблица_2> AS T2
  7. ON T1.ID = T2.ID
  8. WHEN NOT MATCHED BY TARGET
  9. THEN INSERT(ID, ...) VALUES(T1.ID, ...);
Add Comment
Please, Sign In to add comment