[PHP]
declare
typet_type is table of number(10);
v_batch_idt_type;
begin
execute immediate 'create table test2(batch_id number(10))';
select distinct batch_id bulk collect into v_batch_id from test2;
if v_batch_id.count>0 then
for i in v_batch_id.first..v_batch_id.last loop
DBMS_OUTPUT.PUT_LINE('test');
end loop;
end if;
end;
/
ERROR at line 7:
ORA-06550: line 7, column 62:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 7, column 3:
PL/SQL: SQL Statement ignored