Skip to content

Instantly share code, notes, and snippets.

@psdtohtml5
Created June 26, 2013 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psdtohtml5/5871540 to your computer and use it in GitHub Desktop.
Save psdtohtml5/5871540 to your computer and use it in GitHub Desktop.
SQL: Update column with random numbers
UPDATE users SET password = floor(rand() * 9999999999) WHERE role=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment