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: Character to number conversion

Re: Character to number conversion

From: John Vernes <vernes.j_at_consunet.nl>
Date: Mon, 8 Mar 1999 23:41:28 +0100
Message-ID: <7c1jla$if3$1@news.worldonline.nl>


I have a nice function to check is a character field REALLY is a number

nvl(rtrim(ltrim(value, '0123456789'), '0123456789'), '.') = '.'

This results in '.' for a number. This works great for character fields. Use a decode for example to split the numbers from the rest

Nice He

-John Received on Mon Mar 08 1999 - 16:41:28 CST

Original text of this message

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