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

mysql随机查询数据

WBOY
Release: 2016-06-07 17:51:04
Original
937 people have browsed it

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

 代码如下 复制代码
* from tt_dvjobs ORDER BY rand() LIMIT 0 , 10
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template