一条分页的SQL语句select * from (select rownum id,t.* from (select * from music ORDER BY classid DESC) t
where rownum<20) tt where tt.id>10;一条分页的SQL语句
select * from (select my_table.*, rownum as my_rownum from (select name, birthday from employee order by birthday ) my_table where rownum <120) where my_rownum>=100
where rownum<20) tt where tt.id>10;一条分页的SQL语句
select * from (select my_table.*, rownum as my_rownum from (select name, birthday from employee order by birthday ) my_table where rownum <120) where my_rownum>=100
解决方案 »
- oracle为什么隔段时间就无法访问?
- sqlplus 页面打不开,服务里面也没有,为什么????
- 关于Oracle的可选条件查询
- 高分:求助oracle8i 多主复制和快照更新的配置方法
- 无法创建触发器问题
- 请问各位oracle高手,我如何把数据库字符集配置为AL32UTF8 ?
- 如何停掉oracle servlet engine服务?或者改变8080这个端口也行???
- 根据网上大家所说的方法建立两个数据库之间的数据库链接进行访问,还是提示出错信息“无法处理服务名”,详情内附,请大家帮忙!
- 哪位高手能告述我如何在 C# 中执行Oracle的PL/SQL语句?
- 调查:各位公司中使用的Oracle是什么版本?服务器是什么平台
- TSQL 转化成PLSQL
- 如何改变一个表的默认索引表空间?
可不可以试一下SQL条件每次取出10条记录,比如说前面有排序字段
我的QQ:44030746
MSN:[email protected]
我是这么想的,第一次查询时查出10条记录,记下最大的id,通过url?lastid=重写来实现第2次查询:
语句为:
select * from tt where id>=lastid and rownum<11;