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: SQL selecting records

Re: SQL selecting records

From: Alain Walrant <alain.walrant_at_oracle.com>
Date: Tue, 13 Feb 2001 21:41:42 +0100
Message-ID: <3A899C06.24981C71@oracle.com>

include the following where clause (rownum) in your query:

select *
from table
where <your_own_criteria>
and rownum < 5 -- add this line

Alain.

Alan wrote:

> I am trying to only get the first 5 records out of tables that met certain
> criteria. Can I get these 5 records without getting all the records that
> met certain criteria? Thanks.
Received on Tue Feb 13 2001 - 14:41:42 CST

Original text of this message

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