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

 

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

 

改为:

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

 

相关文章:

  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2021-10-03
  • 2021-10-16
猜你喜欢
  • 2021-06-13
  • 2021-09-11
  • 2021-11-07
  • 2021-08-26
  • 2022-12-23
  • 2021-08-13
  • 2022-12-23
相关资源
相似解决方案