By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,017 Members | 979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,017 IT Pros & Developers. It's quick & easy.

Inserting into temp table using Cursor

P: n/a
Hi All
Db2 8.1.3
I have a SP ,Say SP1.
SP1 is returning a dynamic result set i.e. a cursor is left opened.
This SP is called in another SP ,Say SP2.
A result set locator (RS1) is associated with SP1 in SP2.
A cursor(C1) is allocated to RS1.
Thus C1 has all the values which are returned by SP1.
Now I want to insert the values in this cursor in a session table.
I know this can be done using a while loop and fetching the rows one by
Just curious whether there is any other method which is less time

Mar 13 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.