CONTINUE Statement not Completing Loop Correctly when used in a CURSOR FOR LOOP
(Doc ID 813858.1)
Last updated on FEBRUARY 12, 2019
Applies to:PL/SQL - Version 126.96.36.199 to 188.8.131.52 [Release 11.1]
Information in this document applies to any platform.
***Checked for relevance on 23-Sep-2013***
Normally the statement CONTINUE immediately completes the current iteration of a loop and passes control to the next iteration of the loop. But when it is executed in a CURSOR FOR LOOP and the initialization parameter PLSQL_OPTIMIZE_LEVEL is set to 2 (which is the default setting on 11G), it exits the loop.
The following sample code demonstrates the behavior:
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document