If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to pass an Array into a Stored Procedure ???

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-08, 09:46
Libin B Libin B is offline
Registered User
 
Join Date: Jan 2008
Posts: 1
How to pass an Array into a Stored Procedure ???

Hi ,

I have to write a stored procedure which would accept an array as an input parameter. But since there is no Array datatype available in db2 till Ver 9.5, is there any workaround that i can use ??? How would i be able to take in the parameters and run a loop like in C using a DB2 stored proc ....??? Is it possible at all ?? If so an example of how to do it would be fantastic ..


Any help in this regard is deeply appreciated ...


Thanks,
Libin.

Last edited by Libin B; 01-17-08 at 09:58.
Reply With Quote
  #2 (permalink)  
Old 01-17-08, 09:56
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Your only alternative is to store the values in a table or temp table and have the SP fetch the values in your loop.

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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