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

Home -> Community -> Usenet -> c.d.o.misc -> Re: select the first ten row

Re: select the first ten row

From: Xavier ARQUES <Xavier.Arques_at_ansf.alcatel.fr>
Date: 1997/02/10
Message-ID: <32FF8E03.1B8D@ansf.alcatel.fr>#1/1

Alex wrote:
>
> Hi,
> How can I select the first ten row of a table in a efficiency way?

Hi,
You can use the ROWNUM pseudocolumn to limit the number of rows returned by a query, as in this example:

SELECT * FROM table

        WHERE ROWNUM <= 10; Received on Mon Feb 10 1997 - 00:00:00 CST

Original text of this message

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