フロー制御言語Control-of-Flow

適用対象: ○SQL Server XAzure SQL Database XAzure SQL Data Warehouse XParallel Data WarehouseAPPLIES TO: yesSQL Server noAzure SQL Database noAzure SQL Data Warehouse noParallel Data Warehouse

Transact-SQLTransact-SQL のフロー制御言語キーワードには、次のようなものがあります。The Transact-SQLTransact-SQL control-of-flow language keywords are:

BEGIN...ENDBEGIN...END RETURNRETURN
BREAKBREAK THROWTHROW
CONTINUECONTINUE TRY...CATCHTRY...CATCH
GOTO labelGOTO label WAITFORWAITFOR
IF...ELSEIF...ELSE WHILEWHILE

参照See Also

CASE (Transact-SQL) CASE (Transact-SQL)
スラッシュ スター(ブロック コメント) (Transact-SQL) Slash Star (Block Comment) (Transact-SQL)
-- (コメント) (Transact-SQL) -- (Comment) (Transact-SQL)
DECLARE @local_variable (Transact-SQL) DECLARE @local_variable (Transact-SQL)
EXECUTE (Transact-SQL) EXECUTE (Transact-SQL)
PRINT (Transact-SQL) PRINT (Transact-SQL)
RAISERROR (Transact-SQL)RAISERROR (Transact-SQL)