In this post, you’ll learn about the error message -405 the numeric literal literal cannot be used as specified because it is out of range in the IBM DB2 database , the reason why it occurs along with the solution to fix it
IBM DB2 Error Message
-405 the numeric literal literal cannot be used as specified because it is out of range
Reason for the Error
The specified numeric literal is not in the proper range.� The proper ranges for SQL values are as follows:� *�� 5.4E-79 to 7.2E+75 for FLOAT values *�� -(10 -1) to +(10 -1) for DECIMAL values *�� -2147483648 to 2147483647 for INTEGER values *�� -32768 to +32767 for small integer (SMALLINT) values.
Solution
The value of the literal should be reduced to the appropriate size for this data type.