This Oracle tutorial explains how to use the EXIT statement in Oracle with syntax and examples.
In Oracle, the EXIT statement is most commonly used to terminate LOOP statements.
The syntax for the EXIT statement in Oracle/PLSQL is:
Optional. It is the condition to terminate the LOOP.
Let's look at an EXIT Example in Oracle/PLSQL:
In this example, the LOOP would terminate when the monthly_value exceeded 4000.