Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Replace non-number to number
<fransh_at_hotmail.com> a écrit dans le message de news: 1142583303.457864.301350_at_v46g2000cwv.googlegroups.com...
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; :/ :
It does not seem to me this is what it is requested. I think the OP search for something to remove the non-numeric characters in a value and not to check if the value is numeric or not.
Regards
Michel Cadot
Received on Fri Mar 17 2006 - 10:07:06 CST