博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Oracle分页查询
阅读量:4229 次
发布时间:2019-05-26

本文共 317 字,大约阅读时间需要 1 分钟。

以scott账户下的emp表为例子

首先查询emp表:Select * From emp

1.演示分页查询第6~11数据

Select * From (Select emp.empno,Rownum r From emp Where Rownum<=11)  Where r>=6

2.先进行排序,再分页查询

Select * From  emp e Order By e.empno Desc

Select * From (Select e.*,Rownum r_num From(Select * From emp e Order By e.empno Desc )e)b Where b.r_num between 6 And 11       
   

 

 

 

 

 

 

 

 

转载地址:http://ckcqi.baihongyu.com/

你可能感兴趣的文章
Linux中.a,.la,.o,.so文件的意义和编程实现
查看>>
The Linux kernel
查看>>
u-boot的Makefile分析
查看>>
Linux 设备驱动 Edition 3
查看>>
Linux驱动开发学习的简单步骤
查看>>
LINUX下编程工具常见用法小结
查看>>
驱动中位域操作简析
查看>>
Linux 引导过程内幕
查看>>
十年学会程序设计
查看>>
GPS NMEA-0183协议详解
查看>>
Rational 最新软件试用下载地址
查看>>
正则表达式30分钟入门教程
查看>>
Build the Hack CPU with Verilog -- 陈硕
查看>>
《计算机系统要素》配套软件和资料下载
查看>>
u-boot 启动过程 —— 基于S3C2410 --转载自周明
查看>>
U-boot大全
查看>>
怎样开公司
查看>>
灵活使用Linux下的glimpse工具和tee命令
查看>>
介绍Linux下经典的文件传输工具: lrzsz
查看>>
活用AXD Debugger调试器的命令行,实现u-boot的源代码级调试
查看>>