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)
beginprint('@a的值最大')endif(@b>@a and @b>@c)
beginprint('@b的值最大')endif(@c>@a and @c>@b)
beginprint('@b的值最大')end