今天做mybatis分页时遇到的问题,很无语,感觉sql语句写的没问题,但是一直提醒sql语法有问题,后来经过细心排查找到了问题所在。下面是一直报错的代码。
该错误一般出现在表名或字段名设计的过程中出现了mysql关键字导致的。
我的是sql语句中最后面加了分号(疏忽大意了。。。)
今天做mybatis分页时遇到的问题,很无语,感觉sql语句写的没问题,但是一直提醒sql语法有问题,后来经过细心排查找到了问题所在。下面是一直报错的代码。
该错误一般出现在表名或字段名设计的过程中出现了mysql关键字导致的。
我的是sql语句中最后面加了分号(疏忽大意了。。。)