Last active
December 15, 2015 09:38
-
-
Save olivier-spinelli/5239456 to your computer and use it in GitHub Desktop.
T-Sql statement terminator.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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