T-SQL: IF Conditional Syntax











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

Comments

Popular posts from this blog

Install the Northwind Sample Database

ASP.NET : Create an Empty Web Application Project in Visual Studio 2012

C# Querying From An Oracle Database