Tech Junkie Blog - Real World Tutorials, Happy Coding!: SQL Server : T-SQL: IF Conditional Syntax

Friday, March 20, 2015

SQL Server : T-SQL: IF Conditional Syntax



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




1 comment:

Search This Blog