Skip to content

Instantly share code, notes, and snippets.

@olivier-spinelli
Last active December 15, 2015 09:38
Show Gist options
  • Save olivier-spinelli/5239456 to your computer and use it in GitHub Desktop.
Save olivier-spinelli/5239456 to your computer and use it in GitHub Desktop.
T-Sql statement terminator.
-- Then statement of a if can be terminated by ;
if 0 = 1 print 'boo';
else print 'murf';
-- ; can appear after a end. Any number of times (empty statements).
if 0 = 1
begin
print 'boo';
end;
else
begin
print 'murf';
-- This is an empty statement.
;;
end;;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment