| select top "+page_count+" * from contact where id not in (select top "+showpage*page_count+" id from contact order by id desc) and reid=0 order by id desc |
我用的是上面这种网上说的高效分页法,但实际运用发现,因为是按条件每页对数据库查询TOP 多少条,所以得不到总记录集,也就是说最后一页的实现比较难,我现在只能得到上一页和下一页以及首页,但尾页就不知道用什么办法 了,而且因为只有一页数据集,跳转也不能实现,请问站长应该怎么做.
|