select * from tablename where rownum<=10;

解决方案 »

  1.   

    上述答案在不要求排序时可以,如果要排序则应该为:
    select * from (select * from tablename order by 排序条件) where rownum < 11
      

  2.   

    或者是:
    select * from tablename where rownum < 11 order by 排序条件
      

  3.   

    select * from (select * from tablename order by 排序条件) where rownum < 11
    这样写很没有必要