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 |