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

Home -> Community -> Usenet -> c.d.o.server -> Re: how to fetch the first n rows only for a query

Re: how to fetch the first n rows only for a query

From: nettdata <nettdata_at_noSpAM_nettdata.com>
Date: Tue, 23 Jul 2002 00:15:06 GMT
Message-ID: <3D3CA029.5030606@noSpAM_nettdata.com>


I would iterate through a CURSOR loop.

Are you doing this from SQL*PLUS or PL/SQL?

Fan Ruo Xin wrote:
> Hi,
> I have a very simple query like,
> SELECT ...
> FROM MyTable
> WHERE
> ORDER BY
>
> Both the tablesize of mytable and result size are very big. I only care
> the first 10 or 20 rows from the result set. How to implement it in
> ORACLE?
> BTW, I searched SELECT stmt in SQL Reference, got no help.
>
> Regards,
> Fan Ruo Xin
>
Received on Mon Jul 22 2002 - 19:15:06 CDT

Original text of this message

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