Wednesday, September 26, 2012

IF versus CASE in MSSQL

IF @x = 0
   BEGIN
      --whatever
   END
ELSE
   BEGIN
      --whatever
   END

...does not seem to require an END the way a CASE statement does.

No comments:

Post a Comment