I am trying to update BUNDLE_NAME from below table, My Query is :
MERGE INTO SOURCE S USING
(SELECT 'MANIFEST_ID' KEY,'CART' BUNDLE_NAME FROM DUAL) D
ON(S.KEY = D.KEY AND S.BUNDLE_NAME = D.BUNDLE_NAME)
WHEN MATCHED THEN UPDATE
SET BUNDLE_NAME = 'EPI';
but it gives me the following error:
Error report - SQL Error: ORA-38104: Columns referenced in the ON Clause cannot be updated: "S"."BUNDLE_NAME" 38104. 00000 - "Columns referenced in the ON Clause cannot be updated: %s" *Cause: LHS of UPDATE SET contains the columns referenced in the ON Clause**
--My requirement is that I want to update using merge statement only--