EXIT
Translation reference to convert Oracle EXIT statement to Snowflake Scripting
Last updated
Translation reference to convert Oracle EXIT statement to Snowflake Scripting
Last updated
Some parts in the output code are omitted for clarity reasons.
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. ()
Note that you can change EXIT
with BREAK
and everything will work the same.
Code skips the INSERT
statement by using EXIT
.
This case is functionally equivalent.
Code exits the loop when the iterator is greater than 5.
This case is functionally equivalent by turning the condition into an IF
statement.
Code breaks both loops by using the EXIT
statement pointing to the outer loop.
This case is functionally equivalent applying the same process as the previous sample.
Note that labels are going to be commented out.
No issues were found.
: Label declaration not supported.