问题
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