两种方法是等价的

方法一:

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,

更多相关文章

  1. Android(安卓)Button字母自动全部大写的问题
  2. Android(安卓)禁止Edittext弹出系统软键盘 的几种方法
  3. Android(安卓)使用 第三方 Sweet Alert Dialog 的时候出现的报错
  4. Android(安卓)Camera 方法分析
  5. Android(安卓)EditText不显示光标的解决方法
  6. Android:WebView与Javascript交互(相互调用参数、传值)
  7. android杀进程方法
  8. EditText不显示光标的解决方法
  9. android ScrollView边界阴影方法

随机推荐

  1. 短信监听,自动获短信取验证码
  2. Android(安卓)屏幕适配全攻略
  3. Android实现不同Active页面间的跳转
  4. 【MAC版】Android(安卓)ADB server didn'
  5. batT脚本如何自动执行 adb shell 以后的
  6. 2020Android初中级面试知识点记录——And
  7. Android中 View not attached to window
  8. Android(安卓)4.0 截屏(Screenshot)代码
  9. Android(安卓)App 性能优化
  10. android 设置字体