Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Character to number conversion
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
![]() |
![]() |