c语言sscanf函数的用法是什么
280
2022-11-24
Hive中case when的两种语法
总结一下:两种表达方式是等效的 方法一: 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, 完整示例: select user_id, case location when '北京' then '1' else null end as location_in_beijing from employees
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~