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 -> Can you use a decode with the SET clause of UPDATE statement

Can you use a decode with the SET clause of UPDATE statement

From: Roy Munson <mtproc_at_yahoo.co.uk>
Date: 2 Aug 2004 06:58:47 -0700
Message-ID: <853055e7.0408020558.33b4712e@posting.google.com>


Each,

Can you use a decode like so....

update table
set decode(field_a, value_1, field_b, field_c) = value_2;

Compiler says not....wanting to update either field_b or field_c depending on the value of field_a.

What say you?

TIA Roy Received on Mon Aug 02 2004 - 08:58:47 CDT

Original text of this message

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