The ITERATE statement stops the current iteration of the containing WHILE, REPEAT, LOOP, or BEGIN statement identified by Label.
The containing statement evaluates its loop condition (if any), and either starts the next iteration or stops looping, as the condition dictates.
DECLARE i INTEGER; SET i = 0; X : REPEAT SET i = i + 1; -- Some statements 1 IF i IN(2, 3) THEN ITERATE X; END IF; -- Some statements 2 UNTIL i >= 4 END REPEAT X;
ITERATE statements do not have to be directly contained by their labelled statement, making ITERATE statements particularly powerful.
Notices |
Trademarks |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
ak05060_ |