取出第n条:select * from table where rownum<=n
minus
select * from table where rownum<n;

解决方案 »

  1.   

    用rownum是检索出前n条,我只想检索出第n条。(n就好像一个随机数)
      

  2.   

    上面老兄写的就是这个功能
    也可以
    select * from (select rownum id,tbname.* from tbname)
    where id=n;
      

  3.   

    同意 yfjyz(dd) ,满足你所提的要求
      

  4.   

    select * from 
    (select a.*,row_number() over(order by rownum) rm from tab a)
    where rm=n