EXIT

Description

EXIT is used to terminated a loop

Click here to navigate to the PostgreSQL documentation page for this syntax.

The EXIT statement is fully supported.

Grammar Syntax

EXIT [ label ] [ WHEN boolean-expression ];

Sample Source Patterns

The EXIT statement with WHEN clause is transform to an IF THEN EXIT

Input

EXIT;

EXIT ablock;  -- causes exit from the ablock loop block

LOOP
    -- some computations
    EXIT WHEN count > 0;
END LOOP;

Known Issues

No issues were found.

No related EWIs.

Last updated