Answer the question
In order to leave comments, you need to log in
Why does multiplication by a constant cause an overflow in PL/SQL?
Here are three seemingly identical expressions, but on the latest Oracle 12c PL/SQL crashes with the error "ORA-01426: numeric overflow. Evaluation of an value expression causes an overflow/underflow". Why is that?
declare
n number(38,0);
mul number(38,0) := 100;
begin
n := 2255543300; -- ok
n := 22555433 * mul; -- ok
n := 22555433 * 100; -- numeric overflow
end;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question