返回表中行的存储地址,该地址可以唯一地标识数据库中的一行
返回行在结果集中行的顺序号**(临时的),可以用它限制返回的行数(分页)**
select * from emp;
select em.*,rownum rn from (select * from emp) em where rownum<=10;
select * from (select em.*,rownum rn from (select * from emp) em where rownum<=10) where rn>=6;
select rowid rid,em.* from emp em order by empno desc;
select rownum rn,rid from (select rowid rid,em.* from emp em order by empno desc) where rownum <= 10;
select rid from (select rownum rn,rid from (select rowid rid,em.* from emp em order by empno desc) where rownum<=10) where rn >=6;
select * from emp where rowid in(select rid from (select rownum rn,rid from (select rowid rid,em.* from emp em order by empno desc) where rownum<=10) where rn >=6) order by empno desc;