| description | Control-of-Flow | ||
|---|---|---|---|
| title | Control-of-Flow | Microsoft Docs | ||
| ms.custom | |||
| ms.date | 03/16/2017 | ||
| ms.prod | sql | ||
| ms.prod_service | sql-database | ||
| ms.reviewer | |||
| ms.technology | t-sql | ||
| ms.topic | language-reference | ||
| dev_langs |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | 1115a779-484a-4f32-bcd2-d8f0675945b7 | ||
| author | rothja | ||
| ms.author | jroth |
[!INCLUDE SQL Server]
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)