DB2 Error Code – -405 the numeric literal literal cannot be used as specified because it is out of range

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.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn about the error message -411 current sqlid cannot be used in a statement that references...
  • DB2
  • December 3, 2024
In this post, you’ll learn about the error message -158 the number of columns specified for the view is not...
  • DB2
  • December 3, 2024
In this post, you’ll learn about the error message -618 operation operation is not allowed on system databases in the...
  • DB2
  • December 3, 2024