Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 24th, 2005, 07:14 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default select ONLY records 51-100 in a MySQL table

How do i select ONLY records 51-100 in a MySQL table called trip_master?

something along the lines of:

select * from trip_master limit 51,100;

but this doesnt work...

www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old February 24th, 2005, 07:19 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

The second parameter of the LIMIT clause is the number of records to return, not the upper range - set it to 50 rather than 100 and it should work fine.

HTH,

Chris

 
Old February 24th, 2005, 07:21 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

select * from trip_master limit 50,50;

www.crmpicco.co.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
iframe set to 100% below table algarveweb HTML Code Clinic 2 April 17th, 2006 08:40 AM
CSS Table not extending 100% of view port? keithc BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 March 9th, 2006 02:06 PM
how to select where rownum BETWEEN 50 and 100? MikoMax Oracle 1 December 1st, 2003 12:53 PM
100% MySQL newbie Adam H-W MySQL 0 November 7th, 2003 12:28 PM
Select records NOT in table davesav SQL Server ASP 2 June 10th, 2003 04:04 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.