Oracle rownum 案例解说

2014-11-24 18:11:18 · 作者: · 浏览: 0

----------------
select * from adminrole where rownum<=4
minus
select * from adminrole where rownum<2>


select * from
(select rownum row_id ,b.* from (select a.* from sorttable a order by sortid)b)
where row_id between 5 and 9;