ALLBASE/SQL Reference Manual
> Chapter 11 SQL Statements E - RGOTO |
||||||||||||||||||||||||
|
ScopeProcedures only SQL Syntax{GOTO GO TO}{Label Integer} Parameters
DescriptionThe label or integer referred to in a GOTO statement is followed by a colon and a statement. AuthorizationAnyone can use the GOTO statement. ExampleCREATE PROCEDURE Process10 AS BEGIN INSERT INTO SmallOrders VALUES ('Widget', 10); IF ::sqlcode <> 0 THEN GOTO Errors; ENDIF; RETURN 0; Errors: PRINT 'There were errors.'; RETURN 1; END;
|