Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 network members.
Post your question now . . .
It's fast and it's free

Popular Articles