select * from
(
select allData.*,rownum rn from 
(
select * from table
) allData
)
where rn=1

解决方案 »

  1.   

    select * from 表 where rownum=1
      

  2.   

    select * from 表 where rownum=1
      

  3.   

    select * from 表 where rownum=1 order by field (desc)
      

  4.   

    ptpa(古月西西)的写法意义不是很大了。
      

  5.   

    select * from table
    where rownum < N
    这个N是你要的数据记录数+1;
      

  6.   

    select * from (select * from 表) where rownum=1
      

  7.   

    ORACLE真是深奥,原来还有 rownum,我现在解决问题了。分不够了,不好意思了。