您现在的位置是:网站首页> 编程资料编程资料
oracle通过行范围查询取4至10行并排序_oracle_
2023-05-27
370人已围观
简介 oracle通过行范围查询取4至10行并排序_oracle_
不能直接用rownum,要查询出来以后用别名转换。
以EMP表为范例,取4至10行:
select * from (select rownum id,t.* from emp t) where id between 4 and 10;
有需要排序的,一定要这样处理:
select * from ( select rownum rn,t.* from ( select a.* from eba02 a order by eba003) t where rownum <= 110) where rn >= 110;
您可能感兴趣的文章:
相关内容
- 在Oracle中导入dmp文件的方法_oracle_
- CentOS 6.3下安装部署Oracle服务器图文教程_oracle_
- Oracle数据泵(Data Dump)使用过程当中经常会遇到一些奇奇怪怪的错误案例_oracle_
- redhat 4中安装Oracle 10g图文教程_oracle_
- Oracle 系统变量函数用法指南_oracle_
- 向Oracle数据库的CLOB属性插入数据报字符串过长错误_oracle_
- oracle复习笔记之PL/SQL程序所要了解的知识点_oracle_
- Oracle 表三种连接方式使用介绍(sql优化)_oracle_
- 教你如何静默安装ORACLE_oracle_
- VMware中linux环境下oracle安装图文教程(二)ORACLE 10.2.05版本的升级补丁安装_oracle_
