Skip to content
Mathias Wulff edited this page Dec 15, 2025 · 3 revisions

Keyword BREAK

BREAK exits the current loop (WHILE, etc.).

Syntax:

    BREAK [label];

Example:

    WHILE @i < 10
    BEGIN
        SET @i = @i + 1;
        IF @i = 5 BREAK;
    END

See also: CONTINUE, WHILE, LEAVE, ITERATE

Clone this wiki locally