以scott登录ORACLE
select deptno,max(sal) from emp group by deptno order by max(sal) desc ;
怎么可以让结果集只显示第一条信息啊 ,类似SQL SERVER 中的 TOP N ,ORACLE中该怎么写呢?
select deptno,max(sal) from emp group by deptno order by max(sal) desc ;
怎么可以让结果集只显示第一条信息啊 ,类似SQL SERVER 中的 TOP N ,ORACLE中该怎么写呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货