Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
case when a then b else c end
|
||||
|
||||
declare @n int
|
||||
set @n=124
|
||||
print case when @n=123 then 'equal' else 'not equal' end
|
||||
|
||||
--If/ElseIf expression
|
||||
set @n=5
|
||||
print case when @n=3 then 'Three' when @n=4 then 'Four' else 'Other' end
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
declare @n int
|
||||
set @n=123
|
||||
if @n=123
|
||||
BEGIN --begin/end needed if more than one statement inside
|
||||
print 'one two three'
|
||||
END
|
||||
ELSE
|
||||
if @n=124 print 'one two four'
|
||||
else print 'other'
|
||||
Loading…
Add table
Add a link
Reference in a new issue