LABEL and GOTO
Translation reference to convert LABEL AND GOTO in SQL Server
Description
Sample Source Patterns
SQL Server
CREATE PROCEDURE GoToProcedure
AS
BEGIN
DECLARE @TotalMaarks INT
SET @TotalMaarks = 49;
IF @TotalMaarks >= 50
GOTO Pass
IF @TotalMaarks < 50
GOTO Fail
Pass:
SELECT 1;
RETURN 1;
Fail:
SELECT 2;
RETURN 2;
ENDSnowflake SQL
LABEL and GOTO statement outside routines (functions and procedures)
Known Issues
Related EWIs
Last updated
Was this helpful?