Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从Oracle中的任何表中获取多行的随机输出?还有(dbms_random.value)是什么意思
select * from (select * from emp order by dbms_random.value) where rownum=1;
它只给出一个随机输出。如何获得多个?
尝试
select * from (select * from emp order by dbms_random.value) where rownum<10
10 可以替换为您选择的任何其他计数