Home >Database >Mysql Tutorial >mysql随机查询数据

mysql随机查询数据

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:51:04951browse

mysql随机的抽了数据我们查到它有一个函数 rand()只要我们在order by 中加上rand()函数进行排序就可以随便取数据了哦。

 代码如下 复制代码
* from tt_dvjobs ORDER BY rand() LIMIT 0 , 10
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn