Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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
__________________
+971-50-5688186
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

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