随机数 - php mysql 带查询条件 获取多条随机记录
阿神
阿神 2017-04-17 16:25:24
0
2
616
阿神
阿神

闭关修行中......

reply all(2)
左手右手慢动作

It’s best to leave this to PHP, for example, randomize the ID in advance

阿神

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!