Oracle 随机取数据
来源:互联网 发布:linux mount共享盘 编辑:程序博客网 时间:2024/05/29 17:19
select * from
(
select * from hr.employees order by dbms_random.value
)
where rownum = 1;
注:dbms_random包需要手工安装,位于$ORACLE_HOME/rdbms/admin/dbmsrand.sql
dbms_random.value(100,200)可以产生100到200范围的随机数
另附随机抽取前N条记录的常用方法
8i以上版本
1)select * from (select * from hr.employees order by sys_guid()) where rownum < N;
2)select * from (select * from hr.employees order by dbms_random.value) where rownum< N;
- Oracle取随机数据
- Oracle 随机取数据
- Oracle 随机取数据
- Oracle/SQL Server 随机取数据
- oracle取随机N条数据
- oracle随机取记录
- ORACLE随机取记录
- 随机取oracle表中数据的解决办法~
- oracle 随机取记录数据的值sql语句
- Sql随机取数据
- sql随机取数据
- Sql随机取数据
- SQL 随机取数据
- mysql随机取数据
- mysql随机取数据
- doctrine随机取数据
- 随机取数组数据
- mysql随机取数据
- Centos 5.2 在virtualbox2.0.2 上 不工作一例
- Linux和Windows双操作系统Grub丢失恢复
- 常用的ORACLE数据字典
- 进展
- 我常用的一个开源Pager控件
- Oracle 随机取数据
- JAVA与C#的比较
- Error: No Package Matching glibc.i686的解决办法
- 常用正则表达式&相应转义符&语法
- make: makefile: line 7: Error -- Expecting macro or rule defn, found neither
- 今天开始做NorthWind
- 查找一个排好序的数组中绝对值不相同的数的个数
- 自我激励-----------------如何学黑客技术并从事网络安全
- ns&cgywin安装(转载)