Re: Next Pages!!!!!??????
From: Rod Corderey <Lane_Associates_at_compuserve.com>
Date: 1999/03/10
Message-ID: <36E664E3.9E45D63D_at_compuserve.com>#1/1
;
&bottom_limit and &top_limit being progressively adjusted to suit.
Date: 1999/03/10
Message-ID: <36E664E3.9E45D63D_at_compuserve.com>#1/1
Hi,
from (select empno, rownum line_no from ( select empno from emp where (&mode = 'START' or ( &mode = 'FORWARD' and empno > &last_empno ) or ( &mode = 'BACK' and empno < &first_empno ) ) group by empno ) ) where line_no between &bottom_limit and &top_limit )
;
&bottom_limit and &top_limit being progressively adjusted to suit.
Hope its helpful
Rod Corderey
Lane Associates
Lane_Associates_at_Compuserve.com
http://www.Lane-Associates.com
Chenping Tsou wrote:
> > Is there a way that I could fetch the first 25 records of a infinite > sized table, then issue a command to fetch the next 25 records through > SQL command? > Basically I want to display data usgin Java Servlet to a browser > interface. The first procedure > would be to get the first 25 records, then if the user pressed next > page, it will display the next 25 records. I don't want to load the > whole table as this would be very time consuming. I only want to load > the records that I am displaying. > > Thanks, Ping.Received on Wed Mar 10 1999 - 00:00:00 CET