| title | Control-of-Flow | ||
|---|---|---|---|
| description | Control-of-Flow | ||
| author | rwestMSFT | ||
| ms.author | randolphwest | ||
| ms.date | 03/16/2017 | ||
| ms.service | sql | ||
| ms.subservice | t-sql | ||
| ms.topic | reference | ||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!INCLUDE SQL Server Azure SQL Managed Instance]
The [!INCLUDEtsql] control-of-flow language keywords are:
:::row:::
:::column:::
BEGIN...END
:::column-end:::
:::column:::
RETURN
:::column-end:::
:::row-end:::
:::row:::
:::column:::
BREAK
:::column-end:::
:::column:::
THROW
:::column-end:::
:::row-end:::
:::row:::
:::column:::
CONTINUE
:::column-end:::
:::column:::
TRY...CATCH
:::column-end:::
:::row-end:::
:::row:::
:::column:::
GOTO label
:::column-end:::
:::column:::
WAITFOR
:::column-end:::
:::row-end:::
:::row:::
:::column:::
IF...ELSE
:::column-end:::
:::column:::
WHILE
:::column-end:::
:::row-end:::
CASE (Transact-SQL)
Slash Star (Block Comment) (Transact-SQL)
-- (Comment) (Transact-SQL)
DECLARE @local_variable (Transact-SQL)
EXECUTE (Transact-SQL)
PRINT (Transact-SQL)
RAISERROR (Transact-SQL)