Oracle分页问题!!
下面是分页SQL脚步,但是查询的结果总是不正确,望指教:
SQL code
select min(v_index20),max(match_qty) from (select A.*,rownum rn from (select * from FX_TBL1326421843812) A) where rn >= 1 and rn<= 15
------解决方案--------------------你的期待的结果是什么啊……
------解决方案--------------------[code=SQL]
--给你个参考语句你照着写就好了,rownum是伪劣,只有通过ROWNUM < 才会产生
SELECT * FROM (SELECT A.*,A.ROWNUM NUM FROM TEST A WHERE ROWNUM < 15) TEMP WHERE TEMP.NUM > 10
[/code]