oracle 如何在group by 的语句中使用rownum,实现分页

oracle 如何在group by 的语句中使用rownum,实现分页 贴上我的语句:
SELECT s.calluserid,c.callsign, count(msgstatus) as
alls,sum(msgstatus) as success, tochar(sendtime,'yyyy-MM-dd')
FROM rtx
senddata s,rtxcalluserinfo c where
s.call
userid=c.calluserid group by
s.call
userid,c.callsign,tochar(sendtime,'yyyy-MM-dd');

需要对结果集分页,使用rownum,就会报错


摇曳的蔷薇
浏览 1731回答 1
1回答

吃鸡游戏

SELECT rownum, a.*&nbsp;&nbsp; FROM (<<your complex query including GROUP BY and ORDER BY>>) a
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Oracle