?
select x.id,x.name from (select ROW_NUMBER() over(order by id) as rowNum,* from xx) as x where x.rowNum >0 and x.rowNum <=1000
?
select x.id,x.name from (select ROW_NUMBER() over(order by id) as rowNum,* from xx) as x where x.rowNum >0 and x.rowNum <=1000