没有主键为什么就不能排序,用其他字段也可以的阿select top 10 * from 
(select top 20 * from table order by 字段 desc) AAA
order by 字段 asc

解决方案 »

  1.   

    你在找N条记录时候,把他保存到临时表,同时往临时表里插入一个id自增列
    select IDENTITY(INT,1,1) NewID,* INTO #aa from 表select * from #aa where ID>=10 AND ID<=20
      

  2.   

    没有主键无法排序  自己手工加一列作为标识不就行了?然后再按加入的表识查 
    select IDENTITY(int, 1,1) AS ID_Num,* into #temp from 表
    select * from #temp where ID_Num between 10 and 20