Thanks Raj and others. That definitely leads me to the  right direction.

Surjit

Raj Gopalan wrote:

> On subsequent select
>
> select *
>   from mytable
>  where rownum < 40
>  minus
> select *
>   from mytable
>  where rownum < 20.
>
> This will bring rows between 20 and 40. On the next select, replace 40 with
> 60 and 20 with 40....
>
> -----Original Message-----
> Sent: 03 April 2001 15:26
> To: Multiple recipients of list ORACLE-L
>
> Surjit,
>
> The syntax is:
>
> Select *
> >From   MyTable
> Where  RowNum < 21
> And    <more of your predicates>
> ;
>
> Jack
>
> --------------------------------
> Jack C. Applewhite
> Database Administrator/Developer
> OCP Oracle8 DBA
> iNetProfit, Inc.
> Austin, Texas
> www.iNetProfit.com
> [EMAIL PROTECTED]
>
> -----Original Message-----
> Surjit
> Sharma
> Sent: Tuesday, April 03, 2001 7:46 AM
> To: Multiple recipients of list ORACLE-L
>
> All
>
> I am sure this question has come up here before. I need to
> get the limited number
> of rows from a table at a time (say 20 rows ) using sql . I
> know this can be
> achieved using PL/SQL.
> This is typically required in web based applications where
> you can only show a few
> records at a time.
>
> Your comments are highly appreciated.
>
> Regards.
>
> Surjit
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Jack C. Applewhite
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Raj Gopalan
>   INET: [EMAIL PROTECTED]
>
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Surjit Sharma
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to