Oracle
文章平均质量分 57
普通网友
这个作者很懒,什么都没留下…
展开
-
oracle 三层嵌套分页查询
Oracle三层嵌套分页查询 --table A select * from (select ta.*,rownum r from (select * from A) ta where rownum 5 --注: 其实两层就可以,不过,两层嵌套查询不会用到oracle的外层条件内推机制,效率慢了点 rownum原理: 很简单,rownu原创 2015-04-29 17:01:50 · 6002 阅读 · 2 评论 -
Oracle rownum原理
Rownum原理: 1 Oracle executes your query. 执行查询操作 2 Oracle fetches the first row and calls it row number 1. 将第一行的row num置为1 3 Have we gotten past row number meets the criteria? If no, then Oracle原创 2015-04-29 16:52:26 · 1097 阅读 · 0 评论