If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Displaying Selective Rows

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-30-05, 23:54
ramcha ramcha is offline
Registered User
 
Join Date: Oct 2004
Posts: 14
Question Displaying Selective Rows

Hi,

We are displaying a table rows in a webpage - 10 records at a time. Once the user clicks on "Next" the next set of records has to be retrieved.

We are not interested in retrieving all the records and storing it in the application to navigate through the records.

How do I select "selective" records (say from record number 21 to 30) from a MySQL table?

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 12-01-05, 02:05
Nura Nura is offline
Registered User
 
Join Date: Oct 2005
Posts: 21
Slective rows

Hi,
Why don't you use the limit statement to limit the no of rows returned.
Reply With Quote
  #3 (permalink)  
Old 12-01-05, 02:17
ramcha ramcha is offline
Registered User
 
Join Date: Oct 2004
Posts: 14
Thanks

Thanks Nura,

Will try it out and let know.
Reply With Quote
  #4 (permalink)  
Old 12-04-05, 23:00
ramcha ramcha is offline
Registered User
 
Join Date: Oct 2004
Posts: 14
Thumbs up

Thanks Nura,

It works perfectly fine.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On