Tech Junkie Blog: T-SQL: IF Conditional Syntax

Friday, March 20, 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