Collections:
BEGIN ... END Statement Blocks in SQL Server Transact-SQL
How to put statements into a statement block in SQL Server Transact-SQL?
✍: FYIcenter.com
You can put statements into a statement block with
BEGIN and END key words in Transact-SQL using these syntaxes
BEGIN statement_1 statement_2 ... END
Statement blocks are mainly used with logical conditions and control-of-flow keywords to build conditional executions and loops of executions.
Here is an example on how to use BEGIN ... END statement blocks:
BEGIN PRINT 'The first half.'; PRINT 'The second half.'; END
⇒ IF ... ELSE Statement in SQL Server Transact-SQL
⇐ Conditional Statements and Loops in SQL Server in SQL Server Transact-SQL
⇑ Conditional Statements and Loops in SQL Server in SQL Server Transact-SQL
2017-01-11, 4736🔥, 0💬
Popular Posts:
How To Select All Columns of All Rows from a Table in Oracle? The simplest query statement is the on...
How To Concatenate Two Character Strings Together in SQL Server Transact-SQL? Concatenating two char...
How To Start the Command-Line SQL*Plus in Oracle? If you Oracle server or client installed on your w...
How Run SQL*Plus Commands That Are Stored in a Local File in Oracle? If you have a group of commands...
How To Locate and Take Substrings with CHARINDEX() and SUBSTRING() Functions in SQL Server Transact-...