com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column 'inprice' at row 1我数据库里inprice DECIMAL(5,2),
Form里 private double inprice;
DAO里 ps.setDouble(2,goodsInForm.getInprice());为什么 添加20多的数字就能添加成功 5000左右的就报错呢?
Form里 private double inprice;
DAO里 ps.setDouble(2,goodsInForm.getInprice());为什么 添加20多的数字就能添加成功 5000左右的就报错呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货