--从一个表中随机取两条记录 --1.dbms_random.value select * from(select * from t_ums_config order by dbms_random.value) where rownum <= 2; --2.dbms_random.random select * from(select * from t_ums_config order by dbms_random.random) where rownum <= 2; --3.sys_guid() select * from(select * from t_ums_config order by sys_guid()) where rownum <= 2; --4.sample(20) 按百分比 select * from(select * from t_ums_config sample(20)) where rownum <= 2; --5.sample block(20) 按数据块 select * from(select * from t_ums_config sample block(40)) where rownum <= 2;

相关文章:

  • 2021-10-30
  • 2022-12-23
  • 2021-11-24
  • 2021-11-15
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-01-05
  • 2022-12-23
相关资源
相似解决方案