ORACLE查询第N到M条数据
摘要:
句式1:SELECT * FROM (SELECT tb.*,rownum RN FROM (查询sql语句) tb where rownum<=M) where rn>N句式2: select * from ( select tb.*, row_number() over(order by 列名 desc) rownumber from (查询sql语句 ) tb [where条件] ) where rownumber between N and M; 阅读全文
posted @ 2012-11-05 17:33 Guifang 阅读(265) 评论(0) 推荐(0) 编辑