如果是前后的问题,可以没有主键,但是要有一个唯一字段能表示先后顺序才行
否则讨论先后没有意义
select * from (select * from tablename order by field_name desc) where rownum <=10

解决方案 »

  1.   

    create table as select * from scott.emp;select * from aaa a 
    minus 
    select * from aaa a where rownum<(select count(1)-9 as num from aaa b)
      

  2.   

    create table aaa as select * from scott.emp;比较下面两条语句运行的结果:
    select * from aaaselect * from aaa a 
    minus 
    select * from aaa a where rownum<(select count(1)-9 as num from aaa
      

  3.   

    Fred_Mark() 的答复看不懂,能否再写明确些,谢谢!
      

  4.   

    create table aaa as select * from scott.emp;比较下面两条语句运行的结果:
    select * from aaaselect * from aaa a 
    minus 
    select * from aaa a where rownum<(select count(1)-9 as num from aaa b)