ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Recipe 1.10. Returning n Random Records

Recipe 1.10. Returning n Random Records

原创 Linux操作系统 作者:wuxidba 时间:2010-12-06 14:32:23 0 删除 编辑
 select * 
 from (
       select ename, job
       from emp
      order by dbms_random.value()
  )
  where rownum <= 5

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/23895263/viewspace-680977/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2010-05-12

  • 博文量
    64
  • 访问量
    73602