Aug 3, 2001 #1 msgregory Programmer Aug 1, 2001 2 US Is there a way to get the first 10 rows, the second 10, etc. of a query, like search engine results?
Aug 3, 2001 #2 Cagliostro Programmer Sep 13, 2000 4,226 GB try select top 10... John Fill ivfmd@mail.md Upvote 0 Downvote
Aug 3, 2001 Thread starter #3 msgregory Programmer Aug 1, 2001 2 US How do I get the second 10, I should say? Upvote 0 Downvote
Aug 3, 2001 1 #4 rycamor Programmer Jun 3, 1999 1,426 US SELECT * FROM tablename LIMIT 10; SELECT * FROM tablename LIMIT 10,10; SELECT * FROM tablename LIMIT 20,10; SELECT * FROM tablename LIMIT 30,10; etc... When you have two arguments to LIMIT, the first number is the row offset, and the second one is the number of rows to show. Upvote 0 Downvote
SELECT * FROM tablename LIMIT 10; SELECT * FROM tablename LIMIT 10,10; SELECT * FROM tablename LIMIT 20,10; SELECT * FROM tablename LIMIT 30,10; etc... When you have two arguments to LIMIT, the first number is the row offset, and the second one is the number of rows to show.