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 with decode

Re: help with decode

From: <soup_or_power_at_yahoo.com>
Date: 3 Aug 2005 07:28:22 -0700
Message-ID: <1123079301.940306.248560@g14g2000cwa.googlegroups.com>

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

Also if I use CHR(1) as follows what does it mean?

SELECT (DECODE(a1, 'b1 || CHR(1) || a2, 'b2')) from A

Thanks! Received on Wed Aug 03 2005 - 09:28:22 CDT

Original text of this message

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