Thursday, March 19, 2015

T-SQL: IF Conditional Syntax

IF SomeCondition
BEGIN
-- Execute some code here
END
ELSE
BEGIN
-- Execute some code here
END
Else is optional

No comments:

Post a Comment