Limit高效分页

传统分页: Select * from  table  limit    10000, 10;

Limit 原理:limit  10000, 10;    偏移量越大则越慢。


推荐分页: Select  * from  table where  id > 23584  limit  11;   #  10 + 1 (每页10条)

Select  * from table  where  id > 23584  limit  11;

猜你喜欢

转载自blog.csdn.net/fanghaotian2012/article/details/23449935
今日推荐