1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| declare
n1 NUMBER(25,10);
c VARCHAR2(30) := '123456789012345.1234567890';
n2 NUMBER(15,10);
begin
n1 := to_number(c, '999999999999999D9999999999', 'NLS_NUMERIC_CHARACTERS = ''.,''');
--
n2 := to_number(c, '999999999999999D9999999999', 'NLS_NUMERIC_CHARACTERS = ''.,''');
end;
Erreur commençant à la ligne 1 de la commande :
declare
n1 NUMBER(25,10);
c VARCHAR2(30) := '123456789012345.1234567890';
n2 NUMBER(15,10);
begin
n1 := to_number(c, '999999999999999D9999999999', 'NLS_NUMERIC_CHARACTERS = ''.,''');
--
n2 := to_number(c, '999999999999999D9999999999', 'NLS_NUMERIC_CHARACTERS = ''.,''');
end;
Rapport d'erreur :
ORA-06502: PL/SQL : erreur numérique ou erreur sur une valeur: précision de NUMBER trop élevée
ORA-06512: à ligne 8
06502. 00000 - "PL/SQL: numeric or value error%s" |
Partager