Library code snippets
Limit the number of rows returned
By altphpfaq, published on 17 Oct 2001
MySQL supports the LIMIT keyword, which allows you to control
how many rows are returned; ideal when displaying data over many pages. You can
use LIMIT in your sql query like this:
SELECT name FROM table LIMIT 10
if you want to get the rows between 10 and 20 do the following:
SELECT name FROM table LIMIT 9, 10
For a ADO solution (with an Access / MS SQL Server database), click here.
Related articles
Related discussion
-
How to optimize mysql subquery performance?
by Jayaram P (0 replies)
-
How to Fill DataSet with more records (around 1 lakh) in a faster way
by Jayaram P (0 replies)
-
class file in C#
by glad024 (0 replies)
-
Storing images into MySQL using C#
by Onaopepo (1 replies)
-
London PHP / MySQL Superstar needed!
by gatewaytechnolabs (1 replies)
Related podcasts
-
EarthClassMail.com - Moving from LAMP to .NET 3.5
Scott chats with Matt Davis, architect at EarthClassMail.com, about their move from a LAMP stack (Linux/Apache/mysql/PHP) to .NET 3.5. What's working, what's not, and what kinds of issues are they running into as their architect their solution.
This thread is for discussions of Limit the number of rows returned.