SQL分页语句及简单的SQL分页存储过程

    假分页:从数据库中选择全部的记录后再进行分页html     真分页:只从数据库中选择当前页的记录sql       select top 每页显示的记录数 * from topic where id not in (select top (当前的页数-1)×每页显示的记录数 id from topic order by id desc) order by id desc      
相关文章
相关标签/搜索