软讯网络 > 网站建设 > ASP.NET > 从数据库随机抽取固定行数的数据
【标 题】:从数据库随机抽取固定行数的数据
【关键字】:
【来 源】:http://blog.csdn.net/miomitac/archive/2007/04/10/1559346.aspx
从数据库随机抽取固定行数的数据
select * from (select * from ps_employee where (salary_type='1' or salary_type='7') and status='1' order by dbms_random.value) where rownum <= 60;
【相关文章】
没有相关文章