Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to write Merge statement to overcome ORA-38104: Columns referenced in the ON Clause cannot be up

959406Sep 4 2017 — edited Sep 5 2017

Hi All

as below that merge statement  to execute that show the Error

ORA-38104: Columns referenced in the ON Clause cannot be updated

Can you provides the solution and how to overcome it.....

MERGE INTO FRAA T using (

SELECT

LA.MEID    MEID,

LA.MID     MID,

LA.DEID  DEID,

LI.DISID DISID,

LA.ST       ST

FROM G_MAN LA

INNER JOIN L_DISP LI

ON(LA.DEID=LI.DEID))S

on(s.DEID<>t.DEID

AND S.MID=T.MID)

WHEN  MATCHED THEN UPDATE SET

T.DEID=S.DEID,

T.DISID=S.DISID;

This post has been answered by 959406 on Sep 4 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 3 2017
Added on Sep 4 2017
9 comments
729 views