EXIT
Translation reference to convert Oracle EXIT statement to Snowflake Scripting
Description
EXIT [ label ] [ WHEN boolean_expression ] ;{ BREAK | EXIT } [ <label> ] ;Sample Source Patterns
1. Simple Exit
Oracle
CREATE TABLE exit_testing_table_1
(
iterator VARCHAR2(5)
);
CREATE OR REPLACE PROCEDURE exit_procedure_1
IS
I NUMBER := 0;
J NUMBER := 20;
BEGIN
WHILE I <= J LOOP
I := I + 1;
EXIT;
INSERT INTO exit_testing_table_1 VALUES(TO_CHAR(I));
END LOOP;
END;
CALL exit_procedure_1();
SELECT * FROM exit_testing_table_1;ITERATOR|
--------+Snowflake Scripting
2. Exit with condition
Oracle
Snowflake Scripting
3. Exit with label and condition
Oracle
Snowflake Scripting
Known Issues
Related EWIs
Last updated
Was this helpful?