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: Restrict the number of records

Re: Restrict the number of records

From: John Koo <johnkoo_at_i-wave.net>
Date: Tue, 05 Jan 1999 19:23:57 +0800
Message-ID: <3691F64D.21534641@i-wave.net>


G. Kakisina wrote:

> Hi,
>
> I want to know if it is possible to restrict the number of records to show
> when using a SELECT statement.
> For example, i got a table with a thousand records. When I use a SELECT
> statement, 500 records show up. I only want 10 results. How can i do this?
>
> G. K.

Why not try to use rownum ??

select * from table1 where rownum <= 100 ;

John Koo Received on Tue Jan 05 1999 - 05:23:57 CST

Original text of this message

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