|
|
ITERATE
Continues execution at the beginning of a labeled
procedural-sql-statement.Usage
Description
The
ITERATEstatement can be used to skip the remaining statements within a labeledprocedural-sql-statement. The execution will continue at the beginning of the labeledprocedural-sql-statement. The statement must be aFOR,LOOP,REPEATorWHILEstatement.For a list of
procedural-sql-statements, see Procedural SQL Statements.The label is the beginning label of a
procedural-sql-statementswithin the scope containing theITERATEstatement.Restrictions
A
procedural-sql-statementmust have a beginning label ifITERATEis to be used.Notes
If the
ITERATEstatement is contained in any compound statements which are enclosed in theprocedural-sql-statementdefined by the label the following actions will take place:
- Every open cursor declared in the compound statements is closed.
- All variables, cursors and handlers declared in the compound statements are destroyed.
- All condition names declared in the compound statements cease to be defined.
Example
L1: LOOP ... ITERATE L1; ... END LOOP L1;For more information, see Mimer SQL Programmer's Manual, Iteration.
Standard Compliance
|
Mimer Information Technology AB Voice: +46 18 780 92 00 Fax: +46 18 780 92 40 info@mimer.se |
|
|