15.10 - WHILE - Teradata Database

Teradata Database SQL Data Definition Language Syntax and Examples

prodname
Teradata Database
vrm_release
15.10
created_date
December 2015
category
Programming Reference
featnum
B035-1144-151K

Keyword introducing an iteration statement to repeat the execution of one or more statements within its defined scope.

The associated condition is checked before each iteration (including the first) and if true, the statements are performed. Otherwise, the WHILE statement completes with no further iterations.

See SQL Stored Procedures and Embedded SQL, B035-1148 for details.

DO
Keyword introducing the sequence of statements to be performed in the WHILE statement.
END WHILE
Keywords indicating the ending of the sequence of statements in the WHILE statement.