没问题,用SQL语句来实现,示例如下:select top 5 * from 
  (select top 10 * from Employees order by 列名 desc) as tmp
order by tmp.列名

解决方案 »

  1.   

    如果用SqlDataAdapter填充数据集的话可以,比如ds.Fill(ds,startindex,endindex,"tablename");
      

  2.   

    在SQLServer中的话
    select top 5 * from tmp;
    Oracle中
    select * from tmp where rownum <= 5;
      

  3.   

    同意  guying999(求知)如果无排序,是没办法  “读数据数时可否直接读5-10条?“的。因为数据库中数据是没有先后顺序的
      

  4.   

    参考下面的帖子
    http://community.csdn.net/Expert/topic/3088/3088376.xml?temp=.8787042
      

  5.   


    selecct top 5 * from table where id not in (select top 10 id from table order by id asc) order by id asc
      

  6.   

    我刚才用我的测试啦,没错^_^
    select top 5* from aspnet where id not in (select top 10 id from aspnet order by id asc) order by id asc
      

  7.   

    select top 5* from (select top 10* from aspnet order by id asc) asonet_s order by id desc也可以^_^