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 > DB2 > DB2 on AS400 and sql query question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-19-02, 10:33
kulkarni_ash kulkarni_ash is offline
Registered User
 
Join Date: Aug 2002
Posts: 1
DB2 on AS400 and sql query question

Hi,
i am developing a web application in java using AS/400 as database, i have to write a sql query which will get only say 20 records from database even if there are 1000 records in the database, and then i can also set that i want records from 21 to 40 and 41 to 60,
I need this to display only 20 records per page .
so how can i do it,
Reply With Quote
  #2 (permalink)  
Old 08-20-02, 07:25
rrvenki rrvenki is offline
Registered User
 
Join Date: Aug 2002
Posts: 1
Thumbs up sql query question

if you use ADODB, use the getstring method or getrows methods in which you can specify how many records to bring at a time and the starting record. So you can do this along in the scroll event of the grid to achieve the purpose.

RV
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