从数据库中查询的记录集以Collection类型返回 返回的应该是已经分好的,某一个页的全部数据

解决方案 »

  1.   

    http://community.csdn.net/Expert/TopicView.asp?id=3297982
    看看如何
      

  2.   

    up   up不倦  ^_^
      

  3.   

    用Hibernate吧. SQLServer: SELECT * FROM 
         ( 
         SELECT TOP(PageSize) * FROM 
         ( 
              SELECT TOP (PageSize * PageIndex) * 
              FROM Articles 
              ORDER BY id DESC 
         ) 
         ORDER BY id ASC 

    ORDER BY id DESC Oracle: 
    select * from ( 
     select rownum num,t1.* 
      from table t1 where fast=0 
    ) where num>=intPosition and num<=intEndPosition 
    Mysql:里用limit start,num
      

  4.   

    分页的标准接口:
    find(int intBeginIndex,int intEndIndex,String strFilter,String strOrderBy)
    开始记录位置、结束记录位置、过滤条件、排序条件