主机变量或参数*N的转换错误

Ric*_*pal 4 sql ibm-midrange

我在使用带有JDBC的Java时将插入语句的错误传递给AS400数据库.

Ric*_*pal 6

我想通了,我有一个长度为4的数字字段和十进制数字2,在我的插入中,我试图在这个数字字段中插入100,这给出了这个错误.

I altered the table and made it numeric with length 9 and decimal digits 2 
and the insert worked.

即使错误显示"转换错误",实际上它的字段长度也是错误的.