top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

In what order should a open/fetch/loop ...... %NOTFOUND cursor variable in the exit when statement? Why?

+3 votes
342 views

In what order should a open/fetch/loop set of commands in a PL/SQL block be implemented if you use the %NOTFOUND cursor variable in the exit when statement? Why?

posted Oct 22, 2015 by Shivaranjini

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

OPEN then FETCH then LOOP followed by the exit when. If not specified in this order will result in the final return being done twice because of the way the %NOTFOUND is handled by PL/SQL.

answer Oct 26, 2015 by Manikandan J
...