假如有200000条数据,求取出第40-10000记录的SQL语句 ,指教各位DX

解决方案 »

  1.   

    Sql语句不能这样查询,
    sql只能这样 select top 10000之类的
    这需要采用Ado中recordset的pageSize属性和AbsolutePage属性。
      

  2.   

    select top 9960 * from 表 where 主键 not in (select top 40 * from 表)
      

  3.   

    select top 9960 * from 表 where 主键 not in (select top 40 主键from 表)
      

  4.   

    同意楼上的select top 9960 * from table where 主键 not in (select top 40 from table)