瞎搞

declare @a int,@b int,@c int
set @a = (select top 1 a from Table_1 )
set @b = (select top 1 b from Table_1 )
set @c = (select top 1 c from Table_1 )
if(@a>@b and @a>@c)
begin
  print('@a的值最大')
  end
  if(@b>@a and @b>@c)
begin
  print('@b的值最大')
  end
   if(@c>@a and @c>@b)
begin
  print('@b的值最大')
  end
  
原文地址:https://www.cnblogs.com/hanke123/p/4762277.html