Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Replace non-number to number
Michel Cadot schreef:
> "joebayer" <joebayer(nospam)@hotmail.com> a écrit dans le message de news: AypSf.14780$o41.11768_at_trnddc06...
> > Have a look at the TRANSLATE function. > > Regards > Michel Cadot
Or make your own function:
CREATE OR REPLACE
FUNCTION is_number (p_char IN VARCHAR2)
RETURN BOOLEAN
IS
num NUMBER;
BEGIN
num := TO_NUMBER (p_char);
RETURN TRUE;
EXCEPTION
WHEN OTHERS
THEN
RETURN FALSE;
END is_number;
/
hth,
Frans Hovenkamp
Received on Fri Mar 17 2006 - 02:15:03 CST
![]() |
![]() |