在以下法典例中:
Type single_table_purge_type is varray(2) of varchar2(255);
Type single_table_list is table of single_table_purge_type;
purge_table single_table_list;
purge_table := new single_table_list(
new single_table_purge_type( product , Where product_id=5 ),
new single_table_purge_type( customer , Where customer_id=10 )
);
For x in 1..purge_table.Count
Loop
For y in 1..purge_table(x).Count
Loop
DBMS_OUTPUT.put_line( x= ||x|| y= ||y|| cell= ||purge_table(x)(y));
End loop;
End loop;
DBMS_OUTPUT.put_line( m1 || purge_table(1)(1));
DBMS_OUTPUT.put_line( m2 || purge_table(1)(2));
DBMS_OUTPUT.put_line( m3 || purge_table(2)(1));
DBMS_OUTPUT.put_line( m4 || purge_table(2)(2));
How can i get to the items (1,2) or (2,2)? (i.e. the where clauses). All i see is a duplicate of the first item when i print the values out.
产出
m1 product
m2 product
m3 customer
m4 customer