java.sql.SQLException: Data truncation: Truncated incorrect DOUBLE value

mysql 报这个异常:java.sql.SQLException: Data truncation: Truncated incorrect DOUBLE value

 

update 表名 set col1 = ?  and col2 = ? where id = ?

 

改为:

update 表名 set col1 = ?  , col2 = ? where id = ? 用逗号隔开

 

posted @ 2013-09-26 19:55  悟寰轩-叶秋  阅读(1148)  评论(0编辑  收藏  举报