Home > Database > Mysql Tutorial > mysql的有顺序的随机排序需求

mysql的有顺序的随机排序需求

WBOY
Release: 2016-06-06 09:37:01
Original
1364 people have browsed it

mysql排序

打个比方:
select * from table orderby rand() limit 0,5

select * from table orderby 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