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 select only the first 20 rows in a SQL statement

Re: How to select only the first 20 rows in a SQL statement

From: Kluged <kluged_at_ix.netcom.com>
Date: Tue, 09 Nov 1999 23:09:48 -0800
Message-ID: <38291A3C.89A0EA5F@ix.netcom.com>


add "where rownum <21" to the statement.

Glen Gorman wrote:

> use a count colum and constrain it by 20.
>
> Loo Kean Fui wrote:
>
> > Hello
> >
> > Can anyone help ?
> >
> > I need to issue an SQL statement (either select, delete or update) that
> > I want to perform only on the first 20 rows returned and then
> > subsequently repeat the statement on the next 20 rows and so on and so
> > forth
> >
> > Is there any way I can write sucha statement?
> >
> > --
> > L OO
> > Kean Fui
Received on Wed Nov 10 1999 - 01:09:48 CST

Original text of this message

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