I know that fetching a cursor will give me access to variables like %ROWCOUNT, %ROWTYPE, %FOUND, %NOTFOUND, %ISOPEN
...but I was wondering if there are any other rea
I don't know about any crucial differences in this two realizations besides one: for ... loop
implicitly closes the cursor after the loop is finished and if open ... fetch ... close
syntax you'd rather close the cursor yourself (just a good manner) - thought this is not a necessity: Oracle will close the cursor automatically outbound the visibility scope. Also you can't use %FOUND
and %NOTFOUND
in for ... loop
cursors.
As for me I find the for ... loop
realization much easier to read and support.