Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Selecting Next X Values From Dual
I created a package that would easily loop thru and select x number of
entries, but not return them in a select to you. This way, you can make 1
simple call passing it X.
Is that what you wanted ??? Or do you have to have them as returned values of a select ?
Kevin
-----Original Message-----
Sent: Friday, September 27, 2002 2:38 PM
To: Multiple recipients of list ORACLE-L
Anjo...
Thanks for the reply!!
> If X is fixed for all sessions, do a step increase of X so that you
> only have to select 1 row from dual.
Unfortunately, I don't feel I can do that. I'm using the returned values as unique identifiers to protect against duplicate database submissions from a web-based application.
I have implemented a workaround by selecting a row from dual X number of times. I wanted something a bit cleaner, and [seemingly] less database-intensive than querying in a loop.
Gary Chambers
//------------------------------------- // Lucent Technologies GIO/Unix // 4 Robbins Road, Westford, MA 01886 // 978-399-0481 / 888-480-6924 (Pager)
//-------------------------------------
-- 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: Kevin Lange INET: kgel_at_ppoone.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 Fri Sep 27 2002 - 14:53:32 CDT
![]() |
![]() |