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: Selecting Next X Values From Dual

Re: Selecting Next X Values From Dual

From: <Jared.Still_at_radisys.com>
Date: Mon, 30 Sep 2002 09:23:27 -0800
Message-ID: <F001.004DC996.20020930092327@fatcity.com>


You may find this article interesting:

http://otn.oracle.com/oramag/oracle/02-sep/o52sql.html

Jared

Gary Chambers <gc22_at_lucent.com>
Sent by: root_at_fatcity.com
 09/27/2002 11:53 PM
 Please respond to ORACLE-L  

        To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
        cc: 
        Subject:        Re: Selecting Next X Values From Dual


Stephane...

Thanks for the reply.

>> SELECT sequence.nextval FROM table WHERE ROWNUM < x
>> It just seems too kludgy, and I didn't think creating a table with
>> dummy data for the count would be a good way to go. Any suggestions?

> Why 'too kludgy' ? If you are inside a PL/SQL package have you though > of a bulk collect into an array of numbers?

It seems kludgy to me to have a table of n-rows of dummy data to grab a specific number of values from a sequence. Is this a common practice?

Gary Chambers

//-------------------------------------
// Lucent Technologies GIO/Unix
// 4 Robbins Road, Westford, MA 01886
// 978-399-0481 / 888-480-6924 (Pager)

// Nothing fancy and nothing Microsoft
//-------------------------------------

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Gary Chambers
  INET: gc22_at_lucent.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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: 
  INET: Jared.Still_at_radisys.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Mon Sep 30 2002 - 12:23:27 CDT

Original text of this message

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