求一sql ,关于类似C#中的math.max
我现在需要修改数据表一个字段的值,
update test set num = replace([num], [num],[color=#FF0000] [num]*10[/color])
declare @test table (num numeric(5,1))insert into @testselect 8 union allselect 7.2 union allselect 6 union allselect 21 union allselect 7 union allselect 12update @testset num=case when num*10>100 then 100 else num*10 endselect * from @test/*num---------------------------------------80.072.060.0100.070.0100.0*/