文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>oracle、my sql、sql随机查询语句

oracle、my sql、sql随机查询语句

时间:2010-09-17  来源:Mafer

1. Oracle,随机查询20条

select * from( select * from 表名 order by dbms_random.value)
where rownum <= 20;

 

2.SQL Server,随机查询20条

select top 20   * from 表名order by newid()

 

3.My SQL:,随机查询20条

select * from 表名 order by rand() limit 20

相关阅读 更多 +
排行榜 更多 +
随大同

随大同

冒险解谜 下载
弯曲路径:无尽奔跑

弯曲路径:无尽奔跑

休闲益智 下载
工艺融合对战

工艺融合对战

策略塔防 下载