Sql獲取表中隨機1到n條數據

select * from( select a.*,rownum rn from( select t.* from TABLENAME t where 1=1 order by dbms_random.value ) a ) b where b.rn=1
相關文章
相關標籤/搜索