PageHelperi分页 limit ?,? limit ?

仅仅针对Mybaties

PageHelperi分页,报错如下:
    select * fr0m  user limit ?,? limit ?
Caused by: com.alibaba.druid.sql.parser.ParserException: syntax error, error in :’limi1 1 limit ?,?’,expect LIMIT, actual LIMIT limit
原始查询sql(select * from t limit 1)后面有limit1,结果报错显示自动添加上上limit ?,?:
 
https://github.com/pagehelper/Mybatis-PageHelper/blob/master/blob/master/wikis/zh/HowToUse.md#3-pagehelper-安全调用

数据不同步

PageHelper.start(pageNum,pageSize);

查询语句

PageHelper.clearPage(); 

猜你喜欢

转载自www.cnblogs.com/2070393244com/p/12309848.html