m0_60659558 2021-08-25 22:53 采纳率: 100%
浏览 60
已结题

修改时sql报错,用的通用mapper

org.springframework.jdbc.BadSqlGrammarException:

Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4. MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE id = null' at line 1

  • 写回答

4条回答 默认 最新

  • CSDN专家-sinJack 2021-08-25 23:17
    关注

    syntax to use near 'WHERE id = null' at line 1
    这就是参数问题,你看下控制台的参数情况就知道了,有值传过去了,你后台不一定接收正常。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

问题事件

  • 系统已结题 9月3日
  • 已采纳回答 8月26日
  • 创建了问题 8月25日