using union with table type

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sumitv13
    New Member
    • Nov 2012
    • 4

    #1

    using union with table type

    Hello,
    i am converting oracle code into DB2 and at one place they are using union with table type
    Code:
    ORACLE ex:-
    declare
    l_out1 pgty_type.tabletype_name;
    l_out2 pgty_type.tabletype_name;
    l_out3 pgty_type.tabletype_name;
    begin
    select ...bulk collect into l_out1 from table_name ;
    
    select ...bulk collect into l_out2 from table_name(same tale) ;
    
    l_out3 :=l_out1 multiset union l_out2; ---HERE I STUCK
    end;
    this code i get in ORACLE
    AND I NEED TO CONVERT..please help me out...
    Last edited by zmbd; Nov 14 '12, 01:35 PM. Reason: [Z(Please use the <CODE/> button to format posted code)]
Working...