旨在解决问题
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 = ?
问题解决!