Skip to content

Latest commit

 

History

History
71 lines (66 loc) · 2.45 KB

File metadata and controls

71 lines (66 loc) · 2.45 KB
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
keywords [SQL Server], control-of-flow language
control-of-flow language [SQL Server], keywords listed
dev_langs
TSQL

Control-of-Flow

[!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:::

See Also

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)