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: Decode function to Oracle 7

Re: Decode function to Oracle 7

From: Frank Piron <empty_at_zero.nil>
Date: Thu, 14 Oct 2004 15:17:07 +0200
Message-ID: <opsfu26ty0m0et4w@news.online.de>


Am Thu, 14 Oct 2004 15:02:42 +0200 schrieb @rennes <l.sass_at_omp-transport.com>:

> I have that
>
> select
>
> decode(myNumberField > 0,
> True, 'toto',
> False, 'titi') MYRESULT
>
> from RogerTable
>
> Oracle 7 say "missing right parentheses" in the > caractere.
>
> How could i make this test in oracle 7

Try:

decode(sign(myNumberField),

-- 
Crisis? What Crisis?
----------------------------------------------------
f_r_a_n_k_a_t_k_o_n_a_d_d_o_t_n_e_t
Received on Thu Oct 14 2004 - 08:17:07 CDT

Original text of this message

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