在SQL server的条件分支case when有两种写法:
1)case 字段 when 值 then 返回值 when 值2 then 返回值2 end
2)case when 条件1 then 返回值1 when 条件2 then 返回值2 end
在SQL server的条件分支case when有两种写法:
1)case 字段 when 值 then 返回值 when 值2 then 返回值2 end
2)case when 条件1 then 返回值1 when 条件2 then 返回值2 end