Skip to Main Content

Portuguese

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!

error in MERGE statement - ORA-00969: missing ON keyword

LuKKaFeb 15 2015 — edited Feb 15 2015

Hi All ,

I am trying to write a Merge statement , but I am getting the below error .

   MERGE  INTO main_table m

                          USING  tab_1 l, tab_2 u

                          ON  (   l.col1        =  m.col1

                                   AND u.col2 = l.col2)

When Matched then

update........

When not mached then

Insert  ...... 

But here I am using 2 tables in the USING clause . and here I am getting  this error :-

142/17   PL/SQL: SQL Statement ignored

143/42   PL/SQL: ORA-00969: missing ON keyword

May I know where i am doing wrong ?

This post has been answered by caadecarvalho on Feb 15 2015
Jump to Answer
Comments
Post Details
Added on Feb 15 2015
1 comment
12,032 views