博主资料

留言 加为好友 收藏

用户名:  lingoosoft
来自:  北京 海淀
年龄:  27

个人统计

用户名: lingoosoft
等级: 初来乍到
威望: 230
积分: 818
在线时间: 28 小时
日志总数: 88
评论数量: 134
访问次数: 312872
建立时间: 2006-09-30
RSS订阅       手机访问

文章搜索

文章列表

友情链接

最近访问的人:

冬眠的水草世界
2008-08-20 12:14:30
拼命三郎
2008-08-05 14:50:59
aklsdf
2008-07-31 15:56:11
剑南游侠儿
2008-07-29 21:35:33
ccimanic
2008-07-18 11:47:54
IT长空
2008-07-08 11:35:08
电子商务研究(B2C)
2008-07-03 13:55:59
∽★@_@★∽
2008-06-18 14:22:47
在路上
2008-06-18 02:17:02
☆°卢京乀°
2008-06-15 16:12:51

日志文章列表

2007年06月22日 08:34:27

Oracle 随机取记录

select * from (select * from tablename order by dbms_random.value) where rownum < N;
例:
select * from (select * from tablename order by dbms_random.value) where rownum < 3;

注:dbms_rand..

阅读全文>>

Tags: oracle   random   随机  

类别: Database |  评论(1) |  浏览(3570) |  收藏