总结一下:两种表达方式是等效的
方法一:

case
when tb1.os = 'android' then 'android'
when tb1.os = 'ios' then 'iPhone'
else 'PC'
end as os

方法二:

case tb1.os
when 'android' then 'android'
when 'ios' then 'iPhone'
else 'PC'
end as os

相关文章:

  • 2021-08-31
  • 2022-01-21
  • 2021-07-09
  • 2022-12-23
  • 2021-04-26
猜你喜欢
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
相关资源
相似解决方案