Home
SQL Server / T-SQL Tutorial
Query
Insert Delete Update
Table
Table Join
Data Types
Set Operations
Constraints
Subquery
Aggregate Functions
Date Functions
Math Functions
String Functions
Data Convert Functions
Analytical Functions
Sequence Indentity
View
Index
Cursor
Database
Transact SQL
Procedure Function
Trigger
Transaction
XML
System Functions
System Settings
System Tables Views
User Role
CLR
Code Block « Transact SQL « SQL Server / T-SQL Tutorial
SQL Server / T-SQL Tutorial
Transact SQL
Code Block
20.13.Code Block
20.13.1.
When multiple lines of code follow an IF statement it is best to wrap the lines in a BEGIN. . . END block.
20.13.2.
Begin...end block