回想一下我们上周介绍的非常基本的构建块,它允许您获取1到10或1或100之间的随机数。
Recall that very basic building block we introduced last week which allowed you to grab a random number between 1 and 10 or 1 or a hundred.
这样,你首先获取一个小于行数的随机数,然后根据这个便宜量使用limit得到结果。
So you pick a random number less than the number of results and use that as the offset in your LIMIT clause.
应用推荐