Allows one or more
procedural-sql-statementsto be iteratively executed.
REPEATstatement can be used to iteratively execute a sequence of one or more
The iteration continues until the
search-conditionevaluates to true.
For information on
procedural-sql-statements, see Procedural SQL Statements.
labelappears at the beginning and at the end of the
REPEATstatement, the same value must be specified in both places.
labelis optional, however, if
labelappears at the end of the
REPEATstatement, it must also appear at the beginning.
labelis required at the beginning if the
LEAVEstatement is to be used to terminate the
REPEATstatement may be terminated by executing the
label. It will also terminate if an exception condition is raised, in accordance with the normal exception handling process.
ExampleSET I = 0; L1: REPEAT ... SET I = I + 1; UNTIL I > 10 END REPEAT L1;
For more information, see the Mimer SQL Programmer's Manual, Iteration Using REPEAT.
Mimer Information Technology AB
Voice: +46 18 780 92 00
Fax: +46 18 780 92 40