I have a code like this
MERGE INTO target_table tgt
USING source_table src
on(tgt.c1=src.c1)
WHEN MATCHED THEN
UPDATE SET tgt.c1=src.c2
I get ORA-38104: Columns referenced in the ON clause cannot be updated
. I understand the reason for this error. But how can we rewrite this code? Is there any possibilities without using cursor?