码迷,mamicode.com
首页 > 其他好文 > 详细

Data truncation: Out of range value for column 'Quality' at row 1

时间:2017-07-14 13:16:29      阅读:107      评论:0      收藏:0      [点我收藏+]

标签:tab   ble   val   overflow   lda   sql   length   trunc   character   

Q:

 Data truncation: Out of range value for column ‘Quality‘ at row 1

 com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range value for column ‘Quality‘ at row 1

 

A:

You column Quality DOUBLE(1,1) can take input only 1 |2 |3

Double( totalsize, decimal), size is the number of characters.
Since your field length is small, the input overflows.
Update your table to fix this.

Data truncation: Out of range value for column 'Quality' at row 1

标签:tab   ble   val   overflow   lda   sql   length   trunc   character   

原文地址:http://www.cnblogs.com/printN/p/7169390.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!