order by 排序翻页取数问题

后续批量查询导出,数据同步, 涉及的时候注意一下 不要再用pageSize +1 来做,

一个有效的解决方案就通过where id > lastId and modify_time > startTIme and modify_time <= endTime order by id limit pagesize

原文地址:https://www.cnblogs.com/cbliu/p/13862323.html