SQL分页语句
摘要:
1:select top 每页显示的记录数 * from topic where id not in (select top (当前的页数-1)×每页显示的记录数 id from topic order by id desc) order by id desc 需要注意的是在access中不能是top 0,所以如果数据只有一页的话就得做判断了。。 2:SQL2005中的分页代码 模板: with ... 阅读全文
posted @ 2010-01-09 02:17 anlantan 阅读(154) 评论(0) 推荐(0)
浙公网安备 33010602011771号