示例代码 SELECT ename,sal,deptno FROM emp ORDER BY sal,deptno DESC 解析: 使用多列进行排序时,左边的列的排序优先级高于右侧,如示例:先对sal进行升序,若sal相同,则按照deptno进行降序;若sal没有重复,不会对deptno排序。