Prev | SQL Engine Reference | Next |
LOOP
Remarks
A LOOP statement repeats the execution of a block of statements.
This statement is only allowed in stored procedures and triggers.
Pervasive.SQL does not support post-conditional loops (REPEAT...UNTIL).
Examples
The following example increments the variable vInteger by 1 until it reaches a value of 11, when the loop is ended.
TestLoop: LOOPIF (:vInteger > 10) THENEND LOOP;LEAVE TestLoop;END IF; SET :vInteger = :vInteger + 1;See Also
Prev LIKE |
Contents Up Check for Revisions | Next NOT |