antonpug antonpug - 1 year ago 60
SQL Question

How to write a FOR EACH loop in PL/SQL?

Is it possible to run a for each loop on a PL/SQL array?

Answer Source
for i in my_array.first ..my_array.last loop
  --do_something with my_array(i);
end loop;