Control-of-Flow

THIS TOPIC APPLIES TO: yesSQL Server (starting with 2012)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

The Transact-SQL control-of-flow language keywords are:

BEGIN...END RETURN
BREAK THROW
CONTINUE TRY...CATCH
GOTO label WAITFOR
IF...ELSE WHILE

See Also

CASE (Transact-SQL)
Slash Star Comment (Transact-SQL)
-- (Comment) (Transact-SQL)
DECLARE @local_variable (Transact-SQL)
EXECUTE (Transact-SQL)
PRINT (Transact-SQL)
RAISERROR (Transact-SQL)