第2个回答 2017-03-16
不知道我有没有理解你的意思
sqlserver数据库
select *from(
select Row_number()over(order by id) as rn,*from emp) as e
where e.rn between 15 and 20
oracle数据库
select*from (
select rownum as rn,a.*
from(select *from emp order by id)as a) as b
where b .rn between 15 and 20