正常的sql
select * from bd_user limit 3000000, 20;
优化的sql
select * from bd_user where id>=3000000 order by id limit 0, 20;
正常的sql
select * from bd_user limit 3000000, 20;
优化的sql
select * from bd_user where id>=3000000 order by id limit 0, 20;
0则评论给“MySQL性能优化 - 分页查询越来越慢”