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
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.
Related EWIs
No related EWIs.
Last updated
Was this helpful?