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 > Pervasive.SQL > 'next' and 'previous' page problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-05, 08:08
johannes johannes is offline
Registered User
 
Join Date: Oct 2005
Posts: 1
'next' and 'previous' page problem

Hi there! I'm needing to only call a certain number of records based on the page the user is on . When the user clicks 'next' the next page displays the next set of results (obviously). At the moment I'm loading the whole result set every page and just limiting what the user sees. This way is very slow because everytime i'm calling the entire result set. Any way around this with modifying my SQL statement to just call records (i.e.) between 20 and 40 ? (and then the next page calling 40 and 60, etc.)
Reply With Quote
  #2 (permalink)  
Old 10-05-05, 12:09
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
You might be able to limit the resultset with a "WHERE" clause. It'll probably depend on the structure of your data. Unfortunately, there's no "LIMIT" clause in PSQL.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On