I am trying to fetch the data from a cursor into the nested table .But i am getting the below error.
Error at line 15: PL/SQL: Statement ignored
create or replace procedure p1
is
cursor c1 is select ACCOUNT_NO from daily_amount ;
type nest_tbl is table of NUMBER(24);
t1 nest_tbl;
begin
open c1;
loop
fetch c1 bulk collect into t1 ;
EXIT WHEN C1%NOTFOUND;
END LOOP;
close c1;
for i in 1..t1.count
loop
DBMS_output.put_line( T1(i).ACCOUNT_NO ); --- ERROR HERE ( Error at line 15: PL/SQL: Statement ignored )
end loop;
END;