Oracle: how to UPSERT (update or insert into a table?)
The MERGE statement merges data between two tables. Using DUAL allows us to use this command. Note that this is not protected against concurrent access. create or replace procedure ups(xa number) as begin merge into mergetest m using dual on (a = xa) when not matched then insert (a,b) values (xa,1) when matched then update … Read more