com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE的调错

来源:互联网 发布:湖南教师网络研修平台 编辑:程序博客网 时间:2024/05/18 01:07

旨在解决问题

                    com.mysql.jdbc.MysqlDataTruncation: Data truncation:

                                  Truncated incorrect DOUBLE的调错

关于这种问题的解决,我的方案是:

                    将sql语句中的and换成','(逗号)就好了

   例如:

                   update _category set name = ? and description = ? where id = ?

                   改成

                   update _category set name = ?, description = ? where id = ?


   问题解决!

阅读全文
0 0