Control-of-Flow
https://docs.microsoft.com/en-us/sql/t-sql/language-elements/control-of-flow
The Transact-SQL control-of-flow language keywords are:
BEGIN...END | RETURN |
BREAK | THROW |
CONTINUE | TRY...CATCH |
GOTO label | WAITFOR |
IF...ELSE | WHILE |
https://docs.microsoft.com/en-us/sql/t-sql/language-elements/control-of-flow
The Transact-SQL control-of-flow language keywords are:
BEGIN...END | RETURN |
BREAK | THROW |
CONTINUE | TRY...CATCH |
GOTO label | WAITFOR |
IF...ELSE | WHILE |