掉了薪水的逆排序select name, category, salary where category = 'permanent' order by salary desc
union all
select name, category, salary where category = 'contract' order by salary desc
我在想如果category有20个value怎么办
可以 order by category = ('permanent', 'contract') 吗?
不然就是用case,还是有点麻烦的
不然就是用case,还是有点麻烦的