Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Retrive a set of tuple

Re: Retrive a set of tuple

From: Simone Celli_Marchi <celli_at_cantina.students.cs.unibo.it>
Date: 2000/07/04
Message-ID: <8jtaf3$8vf$1@le.cs.unibo.it>#1/1

Thomas J. Kyte <tkyte_at_us.oracle.com> wrote:
>> I looking for a method to retrive a set of tuples from a table. For
 example
>> I want to retrive from the 15th to 30th tuple without the need to
 keep in
>> memory all tuples e select them from my cgi.
 

> select *
>   from ( select rownum r, a.*
>            from (YOUR_QUERY_GOES_HERE) a
>           where rownum <= :MAX_ROW )
>  where r >= :MIN_ROW
> /

Before your mail, I found NUMROW, so now I do SELECT * from my_table where NUMROW>start_row AND NUMROW<end_row;

Why should I use your query? Where is the difference?

Thank you.

-- 
SysAdm on cantina.students.cs.unibo.it
Undergraduate student of Computer Science 
http://caristudenti.cs.unibo.it/~celli
Key fingerprint = D8BD F3D0 00A5 9C96 4A07  DE62 2A4C EDE1 06AA E5BC
Received on Tue Jul 04 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US