oracle-order by 1,2这个是什么意思,

select b.dname,a.sal from (select deptno,sum(sal) sal from epm group by deptno ) a,(select deptno,dname) b where a.deptno=b.deptno order by 1,2;
意思是根据第一列和第二列排序 相当于 order by b.dname,a.sal

posted @ 2020-10-15 15:04  貔貅526  阅读(765)  评论(0编辑  收藏  举报