Hive中的case when 的写法
16lz
2021-12-04
两种方法是等价的
方法一:
case
when t1.os = 'android' then 'android'
when t1.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,
方法三:
case
when t1.bc = 'android' then 'android'
when t1.os = 'android' then 'android'
when t1.os = 'ios' then 'iPhone'
end as os,
更多相关文章
- Android(安卓)Button字母自动全部大写的问题
- Android(安卓)禁止Edittext弹出系统软键盘 的几种方法
- Android(安卓)使用 第三方 Sweet Alert Dialog 的时候出现的报错
- Android(安卓)Camera 方法分析
- Android(安卓)EditText不显示光标的解决方法
- Android:WebView与Javascript交互(相互调用参数、传值)
- android杀进程方法
- EditText不显示光标的解决方法
- android ScrollView边界阴影方法