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

Home -> Community -> Usenet -> c.d.o.server -> stored procedure variable persistence

stored procedure variable persistence

From: Jay M. Scheiner <jxs_at_wolpoff_nospm_law.com>
Date: 2000/03/31
Message-ID: <38e3ef61.1658422534@news.erols.com>#1/1

How can I carry over a result set/varible from one procedure call to another?

Say I have a table with 500 entries, that I want to feed to a program outside the Oracle server, that is calling my stored procedure repeatedly. The first time, I want to return some info based on row 1, next time row 2, etc.

Can I keep an internal variable that will keep track of this? My guess is I would get row 1, then row 1, etc. as the procedure was called repeatedly.

Should I store a database record that has the last row returned? What is the performance penalty here (if I make a table with just 1 row, with a key for table name and a number as the only other record) and then do a update each time.
Jay M. Scheiner
Programmer/Analyst
Wolpoff & Abramson, LLP
remove _nospm_ from email address
Opinions are my own only!
To email, remove _nospm_ from address. Received on Fri Mar 31 2000 - 00:00:00 CST

Original text of this message

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