`
dcdc723
  • 浏览: 183754 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

db2 分页查询

DB2 
阅读更多
SELECT * FROM "ACT" a1 where (select count(*) from act a2 where a2.actno<a1.actno )>4 and (select count(*) from act a2 where a2.actno<a1.actno)<10

 查询5条。。

 

查询前10条数据

 

 

select * from act fetch first 10 rows only

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics