报错:
### Error updating database.  Cause: java.sql.SQLException: ORA-00926: 缺失 VALUES 关键字
### The error may involve com.cn.ssm.dao.OrderSatisFactionDao.addOrderSatisFaction-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO APP_SATISFACTION (ORDERNO, USERNAME, USERNO, ADDTIME, SATISFACTIONGRADE, SATISFACTIONTITLE, REMARKS)
### Cause: java.sql.SQLException: ORA-00926: 缺失 VALUES 关键字

解决结果:

如果批量插入的list为空的话就会报错,在执行之前添加一层判断list是否为空,在不为空的情况下插入就不会报错了。

相关文章:

  • 2022-12-23
  • 2021-08-13
  • 2021-09-14
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-11
  • 2022-01-11
  • 2022-12-23
  • 2021-07-20
  • 2021-10-04
  • 2021-09-14
  • 2021-09-14
相关资源
相似解决方案