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

Home -> Community -> Usenet -> c.d.o.misc -> Re: How can I use N different where clauses in a single update statement?

Re: How can I use N different where clauses in a single update statement?

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 15 Sep 2005 07:37:58 -0700
Message-ID: <1126795025.797852@yasure>


dean wrote:
> Yeah I wanted something like:
>
> update field1 where something1,
> field2 where something2,
> field3 where something3;

Not going to happen and not worth doing.

Look at making your decisions in an IF/DECODE/CASE statement and then applying them using FORALL.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Thu Sep 15 2005 - 09:37:58 CDT

Original text of this message

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