Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> ORA-06502: PL/SQL: numeric or value error: character to number
('binary' encoding is not supported, stored as-is)
The following statements works fine in Oracle 8.0.5 and fails in 8.1.7.
What can be the reason ?
Regards,
Rene
Example 1
declare
t_getal number(8); t_line varchar2(8); begin t_getal := 333; t_line := lpad(t_getal,8,'0'); -- hier zou uit moeten komen destring: 00000333
Sqlerrm: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
Example 2
t_line := ' '; t_getal := nvl(to_number(t_line),0); -- hier zou uitmoeten komen het getal 0
PL/SQL: numeric or value error: character to number conversion error
-- Posted from [212.189.163.122] by way of mail23.bigmailbox.com [209.132.220.203] via Mailgate.ORG Server - http://www.Mailgate.ORGReceived on Mon May 14 2001 - 04:10:38 CDT