select importerid,count(importerid) as counts from sherc_res
where rownum<5
group by importerid
order by counts desc
where rownum<5
group by importerid
order by counts desc
解决方案 »
- 存储过程循环 大家帮忙调下
- oracle11g如何导入.dmp文件(最好是用工具,不要用命令行)?
- 懂得Oracle的进来一下咯~~这里出来了个问题呀~~
- Oracle数据库中利用CachedRowSetImpl.populate(resultset)抛出错误!
- PL/SQL过期后怎么解决(回者有分)
- 在Oracle中怎么实现定时执行SQL,为每个用户增加加一条空记录,如周一的凌晨执行,(我只有18分了)
- Oracle中如何查询一个表的创建者和创建时间?
- 日期加减的函数
- 请问在oracle的过程里,想通过select来取得一个值,如何做呢?
- oracle向mysql迁移出现的问题
- 各位请进,关于C#调用Oracle存储过程开发的问题
- 在oracle的sqlplus中怎样能把结果保存在c:\a.txt中
t.counts
From (
Select importerid,
Count(1) counts
From sherc_res
Group By importerid
Order By counts Desc
) t
)p Where p.num<=5
rownum是Oracle自动生成的没有必要这样取呀,还有更好方法吗??