-
zm1997 数据达人Lv4
发表于2021-3-5 16:16
悬赏1
已解决
楼主
分析表中的表达式可以写switch语句吗?怎么写呢?
5个回答
可以用case when语句
case when 条件1 then 结果1 when 条件2 then 结果2 else 结果3 end
xxxl 发表于 2021-3-5 16:34
可以用case when语句
case when 条件1 then 结果1 when 条件2 then 结果2 else 结果3 end
...
case when 可以与if嵌套适用吗