This Oracle tutorial explains how to use the REPEAT UNTIL LOOP in Oracle with syntax and examples.
Oracle doesn't have a REPEAT UNTIL LOOP, but you can emulate one with a LOOP statement.
The syntax for emulating a REPEAT UNTIL LOOP in Oracle/PLSQL is:
The statements of code to execute each pass through the loop.
Optional. It is the condition to terminate the loop.
Let's look at an example of how to emulate a REPEAT UNTIL LOOP in Oracle/PLSQL:
In this example, we want the loop to repeat until monthly_value is greater than 4000, so we use the EXIT WHEN statement.
Now, the LOOP would repeat until the monthly_value exceeded 4000.