select * from(
select * from table_name
order by dbms_random.random
) where rownum <=10000 :lol:
Oracle中随机取指定数目的sql语句
随机采样SQL
本文介绍了一种使用SQL进行随机采样的方法,通过结合dbms_random.random函数与rownum限制实现从大量数据中抽取指定数量记录的技术细节。
随机采样SQL
本文介绍了一种使用SQL进行随机采样的方法,通过结合dbms_random.random函数与rownum限制实现从大量数据中抽取指定数量记录的技术细节。
select * from(
select * from table_name
order by dbms_random.random
) where rownum <=10000 :lol:

被折叠的 条评论
为什么被折叠?