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: limit

Re: limit

From: replace this with _at_ <_at_)xs4all.nl>
Date: Tue, 23 Jun 1998 19:51:09 GMT
Message-ID: <359006eb.9342173@news.xs4all.nl>


On Tue, 23 Jun 1998 20:47:44 +0200, Francesc Guasch <frankie_at_etsetb.upc.es> wrote:

>Can I do a select with a limit statement so :
>
>select * from users limit 10;
>
>so it only returns the first 10 in the query ?

Use "rownum < xx" like:

Select *
from users
where rownum < 11

To equal rownum with a number doesn't work.

>if so ... is there an easy way to return the next 10 items ?

Only in PL/SQL with a cursor.


Received on Tue Jun 23 1998 - 14:51:09 CDT

Original text of this message

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