MYSQL 随机查询
2014-03-16 14:43
225 查看
select * from table as t1 join (select round(rand() * ((select max(id) from table)-(select min(id) from table))+(select min(id) from table)) as id) as t2 where t1.id >= t2.id order by t1.id limit 1;
相关文章推荐
- MySQL随机查询的优化实例
- mysql 随机查询数据
- MySQL 随机查询数据与随机更新数据实现代码
- MySQL和MSSQL中优化随机查询速度
- MySQL查询随机数据的4种方法和性能对比
- MySQL随机查询记录的效率测试分析
- 转: 从Mysql某一表中随机读取n条数据的SQL查询语句
- MySQL随机查询记录的效率测试分析
- mysql随机查询若干条数据
- mysql 数据库查询随机数量条目的效率问题及解决办法【转】
- MySQL查询随机数据的4种方法和性能对比
- mysql之 rand 随机查询记录效率
- MySQL使用rand随机查询记录效率测试
- php+mysql快速随机查询方法
- mysql使用rand随机查询记录效率测试
- MySQL随机查询rand()优化
- mysql查询随机1条,5条
- mysql使用rand随机查询记录效率测试 【转】
- mysql使用rand随机查询记录效率测试
- Mysql、Oracle、DB2、Sqlserver 随机查询语句