0
点赞
收藏
分享

微信扫一扫

【开发踩坑】使用PageHelper工具正常sql后面多无关语句

小黑Neo 2024-07-24 阅读 1

背景

SQL日志打印出现了脏东西:
在这里插入图片描述
本来结束的

where muc.code = ?;

后面凭空多出了一个 LIMIT语句

### 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 'LIMIT 21' at line 6

这个是mapper层语句:
在这里插入图片描述
百思不得姐

答案请移步另外的文章里:

PageHelper源码解析

举报

相关推荐

0 条评论