今天爱分享给大家带来DQL语言-分页查询【六】,希望能够帮助到各位。
--查询前10条员工的信息 --注意:Oracle中不支持limit,需要在原始表加上一列:行号,然后使用子查询来实现分页 select * from (select rownum hanghao,e.* from emp e) t where t.hanghao >=1 and t.hanghao <= 10;
原文链接:https://blog.itblood.com/126.html,转载请注明出处。
今天爱分享给大家带来DQL语言-分页查询【六】,希望能够帮助到各位。
--查询前10条员工的信息 --注意:Oracle中不支持limit,需要在原始表加上一列:行号,然后使用子查询来实现分页 select * from (select rownum hanghao,e.* from emp e) t where t.hanghao >=1 and t.hanghao <= 10;