select count(*) from ..得到总纪录
然后
select top n from ... where id in( select top ....)

解决方案 »

  1.   

    select top...好像是在sql数据库的吧,oracle数据库不支持吧!
      

  2.   

    it is even easier in Oracle since Oracle has a rownum() pseudo column, to select the records between 75 and 100, you just do something likeselect * from Authors where Au_LName = 'Anderson' and rownum() >= 75 and rownum() <= 100if you don't use DataGrid, you can just use OleDbDataReader to read out the appropriate number of records and create Table/TableRow/TableCell on the fly