博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

access 分页用 SQL查询语句

Posted on 2009-09-25 23:43  慧神星  阅读(200)  评论(0)    收藏  举报

select top 每页显示的记录数 * from topic where id not in (select top (当前的页数-1)×每页显示的记录数 id from topic order by id desc) order by id desc