select ename,sal,job,comm
from emp
order by case when job = 'SALESMAN' then comm else sal end
from emp
order by case when job = 'SALESMAN' then comm else sal end
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23895263/viewspace-680976/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23895263/viewspace-680976/