java.sql.BatchUpdateException: Date truncation: Out of range value for column xxxxx

报错:

java.sql.BatchUpdateException: Date truncation: Out of range value for column xxxxx

原因:
xxx 列 ddl 中为 stock_num(12,2)

数据库值为0.06
需要更新为:0.06 - 0.21

就会出现该错误

参考:

https://www.jb51.net/article/158166.htm
https://blog.csdn.net/stone_tomcate/article/details/103470241

posted @ 2024-03-29 12:22  chuangzhou  阅读(94)  评论(0编辑  收藏  举报