Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re[2]: merge command ???
>> Hi, for Merge command, how to specify if matched, not
>> to do anything, I tried NULL, not working. Thank you!
>>
>> MERGE INTO caption c3
>> USING caption_at_gtd1 c1
>> ON (c3.caption_id = c1.caption_id)
>> WHEN MATCHED THEN
>> NULL -- don't need to do anything when matched!
>> WHEN NOT MATCHED THEN
>> INSERT (c3.CAPTION_ID,
Forgive me for asking, but if you don't want to handle both cases, then why not just write an INSERT statement to begin with?
Best regards,
Jonathan Gennick --- Brighten the corner where you are http://Gennick.com * 906.387.1698 * mailto:jonathan@gennick.com
Join the Oracle-article list and receive one article on Oracle technologies per month by email. To join, visit http://four.pairlist.net/mailman/listinfo/oracle-article, or send email to Oracle-article-request_at_gennick.com and include the word "subscribe" in either the subject or body.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jonathan Gennick INET: jonathan_at_gennick.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Jan 29 2004 - 17:34:26 CST
![]() |
![]() |