ringa_lee2017-04-17 16:27:24
It’s best to leave this to PHP, for example, randomize the ID in advance
阿神2017-04-17 16:27:24
Get 10 random records with query conditions:
SELECT * FROM yourTable WHERE yourTable.status=0 ORDER BY RAND() LIMIT 10;
The consumption will be very large, use it as appropriate after testing.