22,209
社区成员
发帖
与我相关
我的任务
分享
select *,比例1 = (case 类别 when 'aaa' then 30
when 'bbb' then 40
when 'ccc' then 60
when 'ddd' then 20 end)
,比例2 = (case 类别 when 'aaa' then 40
when 'bbb' then 50
when 'ccc' then 60
when 'ddd' then 30 end)
from tb