MySQL数据-实现分页的最佳方法? [英] MySQL Data - Best way to implement paging?
本文介绍了MySQL数据-实现分页的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的iPhone应用程序连接到我的PHP Web服务,以从MySQL数据库检索数据.一个请求可以返回500个结果.
My iPhone app connects to my PHP web service to retrieve data from a MySQL database. A request can return 500 results.
实现分页并一次检索20个项目的最佳方法是什么?
What is the best way to implement paging and retrieve 20 items at a time?
假设我从数据库中收到了前20个广告.现在,我该如何请求接下来的20个广告?
Let's say I receive the first 20 ads from my database. Now how can I request for the next 20 ads?
推荐答案
查看全文