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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Sql question

Re: Sql question

From: Surjit Sharma <surjits_at_ozemail.com.au>
Date: Wed, 04 Apr 2001 08:10:16 -0700
Message-ID: <F001.002E11B2.20010404063140@fatcity.com>

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
> japplewhite_at_inetprofit.com
>
> -----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: japplewhite_at_inetprofit.com
>
> 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: ListGuru_at_fatcity.com (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: raj.gopalan_at_netdecisions.co.uk
>
> 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: ListGuru_at_fatcity.com (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: surjits_at_ozemail.com.au

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: ListGuru_at_fatcity.com (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).
Received on Wed Apr 04 2001 - 10:10:16 CDT

Original text of this message

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