摘要: Oracle的rownum原理和使用原文见 http://tenn.javaeye.com/blog/99339在Oracle中,要按特定条件查询前N条记录,用个rownum就搞定了。select * from emp where rownum <= 5 而且书上也告诫,不能对rownum用">",这也就意味着,如果你想用 select * from emp where rownum > 5 则是失败的。要知道为什么会失败,则需要了解rownum背后的机制: 1 Oracle executes your query.2 Oracle fetches the 阅读全文
posted @ 2008-05-15 23:25 iamzhenyu 阅读(131) 评论(0) 推荐(0) 编辑