Thread
:
Flag large number random records in a MySQL database - one time only
View Single Post
#
2
IP: 112.87.30.158
2015-04-19, 08:19 AM
Gann Valley
初级会员
Join Date: 2013-04-11
Posts: 1
You can use the following query:
Code:
UPDATE tableName SET win = 1 ORDER BY RAND() LIMIT 20000
Gann Valley
View Public Profile
Find all posts by Gann Valley