|
|
REPEAT
Allows one or more
procedural-sql-statementsto be iteratively executed.Usage
Description
The
REPEATstatement can be used to iteratively execute a sequence of one or moreprocedural-sql-statements.The iteration continues until the
search-conditionevaluates to true.For information on
procedural-sql-statements, see Procedural SQL Statements.Restrictions
If
labelappears at the beginning and at the end of theREPEATstatement, the same value must be specified in both places.Specifying
labelis optional, however, iflabelappears at the end of theREPEATstatement, it must also appear at the beginning.A
labelis required at the beginning if theLEAVEstatement is to be used to terminate theREPEATstatement.Notes
The
REPEATstatement may be terminated by executing theLEAVEstatement usinglabel. It will also terminate if an exception condition is raised, in accordance with the normal exception handling process.Example
SET 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.
Standard Compliance
|
Mimer Information Technology AB Voice: +46 18 780 92 00 Fax: +46 18 780 92 40 info@mimer.se |
|
|