一条分页的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+c/sc#的部署问题
- recover database 带cancel与不带cancel有啥区别
- 在RHEL5.3上安装Oracle10g的10201版本,需要哪些程序包
- 如何用SQL实现如pb的crosstab类型,分不够可再加
- 在11g中。我解开了HR用户了。可是登录时还是提示:“应用程序要求的数据库权限超出了您当前具有的权限。有关特定版本的详细信息, 请单击“帮助”。”
- Oracle Forms Developer Release 6i 能在XP上安装吗?
- 高分跪求!!!一个存储过程或SQL,请高手指点。
- 请问我如何把表中所有记录,用一个列的值去更改另外一个列的值
- 哪儿有oracle的中文帮助?
- oracle 2000 的错误
- TSQL 转化成PLSQL
- 如何改变一个表的默认索引表空间?
可不可以试一下SQL条件每次取出10条记录,比如说前面有排序字段
我的QQ:44030746
MSN:[email protected]
我是这么想的,第一次查询时查出10条记录,记下最大的id,通过url?lastid=重写来实现第2次查询:
语句为:
select * from tt where id>=lastid and rownum<11;