Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: help with decode
Noons wrote:
> soup_or_power_at_yahoo.com apparently said,on my timestamp of 4/08/2005
> 12:28 AM:
>
>> sybrandb_at_yahoo.com wrote: >> >>> The syntax is >>> <string expression>||<string expression> >>> >>> No comma's. >> >> >> >> So the following are the same? >> >> SELECT (DECODE(a1, 'b1', a2, 'b2')) from A >> >> SELECT (DECODE(a1, 'b1 || a2, 'b2')) from A
The second is an error... I miss a quote, and thus it is not a concatenation.
-- Regards, Frank van BortelReceived on Wed Aug 03 2005 - 14:00:30 CDT
![]() |
![]() |