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: Boolean Function in SQL

Re: Boolean Function in SQL

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Fri, 06 Oct 2000 19:13:13 +0800
Message-ID: <39DDB3C9.7D35@yahoo.com>

huiming_at_my-deja.com wrote:
>
> >
> > select
> > decode(
> > replace(
> > translate(col,'0123456789','@@@@@@@@@@'),
> > '@',null),
> > null,'IS A NUMBER',
> > 'IS NOT A NUMBER)
> > from table
> >
>
> Very good idea. However this will not return the correct result when
> column contains something like '1234_at_7@'.
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

True - but I'm sure a workable character can be found that the poster can be reasonably confident will not be in his source data...

Cheers
C

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk

We are born naked, wet and hungry...then things get worse
Received on Fri Oct 06 2000 - 06:13:13 CDT

Original text of this message

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