Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Q: pl/sql function question ?
Sir, following error messages were received when I tried to execute
following procedure:
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SCOTT.IS_NUMBER", line 5 ORA-06512: at line 10
Qestion:
1. why false is not returned by is_number function ? procedure stop
when first invalid_number is encoutered ? 2. how do i get around this if i want to continue processing ?
Thanks in advance Ted Chyn
v_num NUMBER;
BEGIN v_num := TO_NUMBER (str);
RETURN TRUE;
EXCEPTION
WHEN INVALID_NUMBER
THEN RETURN FALSE;
END;
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Sun Sep 05 1999 - 14:39:06 CDT