在写sql查询语句queryRunner.update(connection,"update account set balance=? where name=?",account.getName(),account.getBalance());时出现java.sql.SQLException: Data truncation: Truncated incorrect DOUBLE value: 'zhangsan' Query: update account set balance=? where name=? Parameters: [zhangsan, 800]异常,

原因是查询语句里的参数account.getName(),account.getBalance()位置写反了,应该与sql语句里的一致.

相关文章:

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