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: Morton, Ronald D <rdmorton_at_switch.com>
Date: Tue, 03 Apr 2001 06:58:41 -0700
Message-ID: <F001.002DF799.20010403061524@fatcity.com>

Surjit,

You could set up your PL/SQL procedure to order your query on a unique column such as PK, then return just 20 rows of data plus the last PK value to the application. The application could then supply this PK value in its next request such that your procedure now returns 20 more rows > PK.

Ron Morton
Database Architect / Administrator
Union Switch & Signal Inc
rdmorton_at_switch.com

> -----Original Message-----
> From: Surjit Sharma [SMTP:surjits_at_ozemail.com.au]
> Sent: Tuesday, April 03, 2001 8:46 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Sql question
>
> 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: 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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Morton, Ronald D
  INET: rdmorton_at_switch.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).
Received on Tue Apr 03 2001 - 08:58:41 CDT

Original text of this message

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