Created
March 31, 2019 15:42
-
-
Save dody87/d723642baf32bc64caeca7ec2dd1d6e0 to your computer and use it in GitHub Desktop.
set_random_profile_image.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE user | |
SET img = REPLACE('https://randomuser.me/api/portraits/men/?.jpg', '?', FLOOR((RAND() * (50-20+1))+20)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment