小弟乃一新手,现在线等待某位仁兄,帮我解决下面这个问题:
如何在oracle中实现随机查询,即对一个表查询,每次查出来的数据不相同,当然是一样的条件?
在线等待,答出给100分,谢谢

解决方案 »

  1.   

    select * from table sample(xx) where ....xx为一个[0.000001-100)的百分比.
      

  2.   

    1.
    select * from 
    (select * from your_table order by sys_guid()) where rownum <= 100;
    2.
    http://expert.csdn.net/Expert/topic/2169/2169173.xml?temp=.6450159
      

  3.   


     select * from ( 
                  select p.*, rownum rnum
                     from (select * Table ) p
                   where rownum < MAX
                ) where rnum >= MIN