如果要对内嵌集合进行select操作,必须定义类型为全局,如:
CREATE OR REPLACE TYPE HR_KPI_NUM_ARRAY_TAB AS TABLE OF NUMBER(19);
在进行select操作:
declare
itemids HR_KPI_NUM_ARRAY_TAB;
x number;
BEGIN
....
itemids := HR_KPI_NUM_ARRAY_TAB();
itemids.extend;
itemids(1) := 123
select column_value into x from TABLE(itemids) ;
END;