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: <huiming_at_my-deja.com>
Date: Fri, 06 Oct 2000 08:47:48 GMT
Message-ID: <8rk3jk$q71$1@nnrp1.deja.com>

>
> 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. Received on Fri Oct 06 2000 - 03:47:48 CDT

Original text of this message

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