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

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

WBOY
WBOYOriginal
2016-06-06 09:37:011331browse

mysql排序

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

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