取随机十条:
 select * from ( 
    select * from table1
    order by dbms_random.value )
    where rownum <= 10;取前十条:
select * from table1
    where rownum<=10;    

解决方案 »

  1.   

    取前十条记录应该
    select * from table where rownum<=10 order by id;
    随机取十条记录
    select * from table where Rnd(10);
      

  2.   

    ashg_16700(安) 应该更好一些吧
      

  3.   

    select * from table where Rnd(10);在9i以上用
      

  4.   

    doulikeme(来去无踪) 同意他的第一个做法。
     第二个我在9I下面怎么不成功??
      

  5.   

    取随机十条:
     select * from ( 
        select * from table1
        order by dbms_random.value )
        where rownum <= 10;取前十条:
    select * from table1
        where rownum<=10;