467,209 Members | 1,354 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,209 developers. It's quick & easy.

Inserting into temp table using Cursor

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
one.
Just curious whether there is any other method which is less time
consuming.
TIA
Praveen

Mar 13 '06 #1
  • viewed: 1188
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Fons Dijkstra | last post: by
3 posts views Thread by Joachim Klassen | last post: by
15 posts views Thread by Jaraba | last post: by
2 posts views Thread by kizmar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.