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 -> Re: help: many updates

Re: help: many updates

From: Jaap W. van Dijk <j.w.vandijk.removethis_at_hetnet.nl>
Date: Sun, 23 Feb 2003 22:24:54 +0100
Message-ID: <slei5v4p80cj6hn1c0sdecueiggjh84no8@4ax.com>


Hi Nino,

I didn't come across a 'John' in this thread on my news server, so I checked the Google archives: no John there. He must be on a news group that swaps messages with yours but not with mine or the news group (or groups?) archived by Google.

Jaap.

On Sun, 23 Feb 2003 22:35:50 +1000, "Richard Foote" <richard.foote_at_bigpond.com> wrote:

>"Jaap W. van Dijk" <j.w.vandijk.removethis_at_hetnet.nl> wrote in message
>news:hu8h5voa8ihokd5oovqisak11ddin4odo8_at_4ax.com...
>> I'm not sure why the respondents see this as such a difficult problem.
>> The OP asks for one update statement, which IMO is
>>
>> update table test
>> set
>> colA=decode(colA_1,'X','A',colA),
>> colB=decode(colB_1,'Y','B',colB),
>> colC=decode(colC_1,'Z','C',colC)
>> where
>> colA_1 = 'X' or
>> colB_1 = 'Y' or
>> colC_1 = 'Z'
>>
>> Jaap.
>
>Hi Jaap,
>
>I agree it's a relatively simple question (and solution) but let's give poor
>John some credit in that as "an earlier respondent" he provided the exact
>same solution as yourself, with exactly the same error !!
>
>It's 'UPDATE TEST', not 'UPDATE *table* TEST'
>
>But you both got the tricker bit right ;)
>
>Cheers
>
>Richard
>
Received on Sun Feb 23 2003 - 15:24:54 CST

Original text of this message

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