Oracle® Database PL/SQL Language Reference 11g Release 2 (11.2) Part Number E25519-05 |
|
|
PDF · Mobi · ePub |
The EXIT
statement exits the current iteration of a loop, either conditionally or unconditionally, and transfers control to the end of either the current loop or an enclosing labeled loop.
An EXIT
statement must be inside a LOOP
statement.
Name that identifies either the current loop or an enclosing loop (see "Basic LOOP Statement").
Without label
, the EXIT
statement transfers control to the next iteration of the current loop. With label
, the EXIT
statement transfers control to the next iteration of the loop that label
identifies.
Without this clause, the EXIT
statement exits the current iteration of the loop unconditionally. With this clause, the EXIT
statement exits the current iteration of the loop if and only if the value of boolean_expression
is TRUE
.