CONTINUE Statement not Completing Loop Correctly when used in a CURSOR FOR LOOP
(Doc ID 813858.1)
Last updated on JANUARY 30, 2022
Applies to:PL/SQL - Version 184.108.40.206 to 220.127.116.11 [Release 11.1]
Information in this document applies to any platform.
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