Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> SQL Help

SQL Help

From: Paul Davies <cobalt_at_dircon.co.uk>
Date: Fri, 7 May 1999 17:24:31 +0100
Message-ID: <37331399@newsread3.dircon.co.uk>


I'm running Oracle 8

I've got an update query:

update TABLE_A a

    set a.COL_1 = (select COL_2 from TABLE_B b where a.COL_3 = b.COL_3);

If the subquery returns NULL, I want to leave a.COL_1 unchanged i.e. not set it to null. How do I do this? Received on Fri May 07 1999 - 11:24:31 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US