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: Fan Ruo Xin <fanruox_at_yahoo.com>
Date: Wed, 24 Jul 2002 01:50:47 GMT
Message-ID: <3D3E07EE.72CC7B8D@yahoo.com>


Thanks for the response from you all!!!
I always forget "rowid/rownum". I used to think "rowid" is not a good idea when you use SQL for relational DBMS. Now I chang my thinking. Regards,

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 Tue Jul 23 2002 - 20:50:47 CDT

Original text of this message

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