SQL Notebook (logo)

FOR Statement

Executes the provided statements while incrementing or decrementing a counter variable at each iteration.

The loop may be terminated without regard to the counter by using the BREAK statement. The current iteration of the loop can be abandoned and the next iteration of the loop started by using the CONTINUE statement.

Syntax

Syntax for the FOR statement

Arguments

Examples