11 2021 档案

摘要:The length, precision, or scale attribute for column, distinct type, structured type, array type, attribute of structured type, routine, cast target t 阅读全文
posted @ 2021-11-25 20:08 Hello小码 阅读(2378) 评论(0) 推荐(0)
摘要:错误代码(SQLCODE):-420 为数据转换的问题! 今天在运行程序的时候报了这个异常 经过查看发现我表里的字段是(decimal)“数值”类型的(我的数据库为db2),而我写的代码是字符串类型的 所以把类型转换(利用Double.parseDouble)后就解决了。 没想到之后我又遇到了别的问 阅读全文
posted @ 2021-11-18 17:12 Hello小码 阅读(4904) 评论(0) 推荐(0)
摘要:DB2 修改字段的数据类型为decimal(18,3): alter table TMMICSALJ01 alter ACT_AMOUNT set data type DECIMAL(18,3); DB2 扩大字段的长度: ALTER TABLE 数据库.表 ALTER COLUMN 表字段 SET 阅读全文
posted @ 2021-11-18 16:50 Hello小码 阅读(2109) 评论(0) 推荐(0)