Collection Contents Index LOAD TABLE statement MESSAGE statement pdf/chap9.pdf

Reference Manual
   CHAPTER 9. SQL Statements     

LOOP statement


Function 

Repeat the execution of a statement list.

Syntax 

[ statement-label : ]
...[ WHILE search-condition ] LOOP
... statement-list
...END LOOP [ statement-label ]

Permissions 

None.

Side effects 

None.

See also 

FOR statement

LEAVE statement

Description 

The WHILE and LOOP statements are control statements that allow you to repeatedly execute a list of SQL statements while a search-condition evaluates to TRUE. The LEAVE statement can be used to resume execution at the first statement after the END LOOP.

If the ending statement-label is specified, it must match the beginning statement-label.

Standards and compatibility 

Examples 


Collection Contents Index LOAD TABLE statement MESSAGE statement pdf/chap9.pdf