首页 > 数据库技术 > 详细

mybatis的报错____3Error updating database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right

时间:2019-07-26 00:57:38      阅读:118      评论:0      收藏:0      [点我收藏+]

仔细查看报错日志中的sql语句:

### SQL: update smbms_bill          set billCode=?,             productName=?,             productDesc=?, where id=?

没错,在where id = ?之前多了一个 逗号,正确姿势,去删掉接口配置文件中 最后一个if标签的逗号。

(不得不说 log4j日志打印信息真是好用!)

mybatis的报错____3Error updating database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right

原文:https://www.cnblogs.com/xbfchder/p/11247727.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!