select id=identity(int,1,1),* into #t from [table]
select * from #t where id between 2000 and 3000

解决方案 »

  1.   

    召唤邹建的分页存储过程……
    hohoho~~
      

  2.   

    SELECT TOP 1000 * FROM TABLE WHERE 主键 NOT IN 
    (SELECT TOP 2000 主键 FROM TABLE)
      

  3.   

    SELECT TOP 1000 * FROM (select top 3000 * from tablename order by 主键 desc)
      

  4.   

    rowid是ORACLE里的,rownam>=2000 and rownam<=3000
      

  5.   

    http://community.csdn.net/Expert/topic/3088/3088376.xml?temp=.8868982
      

  6.   

    SELECT TOP 1000 * FROM TABLENAME WHERE ID NOT IN 
    (SELECT TOP 2000 ID FROM TABLENAME)
      

  7.   

    select id=identity(int,1,1),* into #t from [table]
    where id<=2000 and id>=1000
    drop table #t
      

  8.   

    2001-3000:
    SELECT TOP 1000 * FROM TABLENAME 
    WHERE ID NOT IN (SELECT TOP 2000 ID FROM TABLENAME)
    ORDER BY ID