Declare Cursor c is select * from emp; I emp%row_type; Begin open c; fetch c into I; loop Dbms_output_line(‘Emp name:’ || i.ename); fetch c into I; exit when c%notfound; End loop; End; What is the error in above PL/SQL Block
Close cursor statement is not included
No exception block present
exit when c%notfound; this should have been given as exit when c%not_found;
I emp%row_type; it should be given as %ROWTYPE