Replacing order by rand mysql

强颜欢笑 提交于 2019-12-12 09:50:54

问题


Are there any equivalents of order by rand?


回答1:


While link from @Sandro explains why ORDER BY RAND() is bad, it gives no real solutions.

You should try reading this articles. And if it is too "dry", or you want to learn more about SQL, then you should look up SQL Antipatters book, or at least carefully look through authors slides.



来源:https://stackoverflow.com/questions/5538651/replacing-order-by-rand-mysql

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!