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: Restricting result set to first 10 of 100 without cursor

Re: Restricting result set to first 10 of 100 without cursor

From: Green Spawn <greenspawn_at_hotmail.com>
Date: 2000/05/02
Message-ID: <390ee66c.7565200@news.supernews.com>#1/1

On Mon, 1 May 2000 16:56:17 -0500, "Scott Buyer" <scottb_at_verio.net> wrote:

>How would you go about selecting a list of 100 names, sort them, and pull
>back only the first ten?
>I want to do this with using a cursor.
>
>--
>
>
>
>
>
>

Use rownum

select * from customers
where rownum < 101 Received on Tue May 02 2000 - 00:00:00 CDT

Original text of this message

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