|Oracle® Database PL/SQL Language Reference
11g Release 2 (11.2)
Part Number E17126-03
GOTO statement transfers control to a labeled block or statement.
GOTO statement cannot find
label in the current block, it transfers control to the first enclosing block in which
GOTO statement exits a cursor
FOR loop prematurely, the cursor closes.
GOTO statement cannot transfer control into an
LOOP statement, or sub-block.
GOTO statement cannot transfer control from one
IF statement clause to another, or from one
WHEN clause to another.
GOTO statement cannot transfer control out of a subprogram.
GOTO statement cannot transfer control from an exception handler back into the current block (but it can transfer control from an exception handler into an enclosing block).
In this chapter:
In other chapters: