SyntaxFix
Write A Post
Hire A Developer
Questions
An alternative to MERGE (the "old fashioned way"):
begin insert into t (mykey, mystuff) values ('X', 123); exception when dup_val_on_index then update t set mystuff = 123 where mykey = 'X'; end;