今天闲下来,学了一下,判断语句,还是那句话,我写博客,纯属为了增强个人复习所学知识
declare @ceshi1 int
declare @ceshi2 int
declare @ceshi3 int
set @ceshi1=121
set @ceshi2=141
set @ceshi3=54
declare @ceshi int
if(@ceshi1>@ceshi2)
set @ceshi=@ceshi1
else
set @ceshi=@ceshi2
if(@ceshi>@ceshi3)
print @ceshi
else
print @ceshi3
以上例子,是自己定义的,也可以自已随便定义