赞
踩
两种方法是等价的
方法一:
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,
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。