Best scheme of oracle multiPage
来源:互联网 发布:人民网网络舆情内参 编辑:程序博客网 时间:2024/05/01 02:54
select /*+first_rows*/ * from test t
inner join (
select rid from (select rownum num,rowid rid from test)
where num >= start and num <= end
) t1
on t.rowid = t1.rid
这个语句比hibernete中那个三层嵌套的方便在于order by可以让你自己控制.因为hibernete那个在第二层中为了取最后几条而先排倒序取最上面几条.然后再排倒序回头
这样排序就非常复杂.
inner join (
select rid from (select rownum num,rowid rid from test)
where num >= start and num <= end
) t1
on t.rowid = t1.rid
这个语句比hibernete中那个三层嵌套的方便在于order by可以让你自己控制.因为hibernete那个在第二层中为了取最后几条而先排倒序取最上面几条.然后再排倒序回头
这样排序就非常复杂.
- Best scheme of oracle multiPage
- A War of Scheme Selection
- Best of VIM Tips
- Best of Ruby Quiz
- Best of Application Security
- Best of Vim Tips
- Best of Vim Tips
- The Best Of Youth
- Best of Vim Tips
- The 28 best tools for choosing a colour scheme
- Best of Best系列(1) -- CVPR
- Best of Best系列(2) -- ICCV
- Best of Best系列(3) -- ICML
- Best of Best系列(4) -- AAAI
- Best of Best系列(5) -- IJCAI
- Best of Best系列(6) -- SIGIR
- Making Best Out Of Oracle Databases Using ODP.net - Part I
- Making best out of Oracle batabases using ODP.net - Part 2
- 英语简历相关语句
- 35岁之前成功的12条黄金法则
- i can say ABC(2006-7-7)
- 为什么要尽量使用PreparedStatement代替Statement?
- mysql,sqlserver,oracle三种数据库的大对象存取
- Best scheme of oracle multiPage
- oracle一个该死的BUG,后来查它的文档说叫限制.
- 多篇文章入选CSDN技术中心,发文纪念
- 几种建立http-tunnel的方法
- 钱到底是个什么东西?
- 使用OpenGL的顶点缓存扩展
- 字符,字节和编码
- JDBC分布式事务
- Spring in Action的感悟