I have this simple example I can't seems to get working :
MERGE INTO mytable mt
USING dual
ON (mt.id = 'AAA' )
WHEN MATCHED THEN
UPDATE SET mt.name = 'updated'
WHEN NOT MATCHED THEN
INSERT (mt.id , mt.name )
VALUES ('AAA', 'Gooood' );
If a 'AAA' record exists in the table, it is updated successfully.
But if does not exists, it is not inserted :
Affected rows: 0
Time: 0.003ms
Any clue on what I am doing wrong ?