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 > Is any equilant for Varray (as it in ORACLE ) in DB2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-07-08, 01:47
avina_hello avina_hello is offline
Registered User
 
Join Date: Jan 2008
Posts: 1
Is any equilant for Varray (as it in ORACLE ) in DB2

Hello all,

I am new to DB2,Is any equilant for Varray (as it in ORACLE ) in DB2 I am using DB2 8.2.
I have googled and found that we can use Global temprory tables insted.Can i retun table from stored procedure as OUT parameter.





Regsrds
Avinash Byalihal
Reply With Quote
  #2 (permalink)  
Old 01-07-08, 02:26
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
You can return a result set from a stored procedure. It is not specified in the out paramters, but is defined a cursor with return. You can have multiple cursors with return if needed.

Arrays are not available in 8.2, but I think it may be available in 9.5 (just released), or if not in 9.5 it is slated for the next release.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 01-07-08, 07:39
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
ARRAYs are in 9.5.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
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