数据库分页
程序员文章站
2022-04-22 10:25:15
...
DB2分页
SELECT * FROM (
select rownumber() over(order by tkjl.txsj DESC) as rownum,tkjl.* FROM XXXXX tkjl
)where rownum < 100
SELECT * FROM (
select rownumber() over(order by tkjl.txsj DESC) as rownum,tkjl.* FROM XXXX tkjl
)where rownum between 1 and 20
MYSQL分页
select * from Userinfo limit 1,20
Oracle 分页
select * from (
select rownum,k.* from XXXXX k where kadm like '32%'
) where rownum between 1 and 20
--每次取得10条数据
select * from (
select rownum,k.* from XXXXX k where kadm like '32%'
) where rownum <11
上一篇: Intel:会证明自己的处理器更加优秀 并将夺回苹果市场
下一篇: 深入浅出数据库连接池c3p0