Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old March 13th, 2006, 12:15 PM
Praveen_db2
Guest
 
Posts: n/a
Default 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




 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.