CASE 与 IF 的区别 declare @i moneyset @i=12.35declare @j as intset @j=1------------------------------------------------select casewhen @j=1 then cast(@i as decimal(38,0))when @j=2 then cast(@i as decima MSSQL 2023-09-14 152 点赞 2 评论 230 浏览