Oracle随机获取记录

时间:2014-05-26 23:25:36   收藏:0   阅读:217
1 SELECT A.* FROM TableA A CROSS JOIN (SELECT TRUNC(DBMS_RANDOM.VALUE(0,  999999999999999999999)) RANDOMNUM FROM DUAL) B ORDER BY B.RANDOMNUM

 

Oracle随机获取记录,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!