Last active
October 7, 2015 00:27
-
-
Save ethangardner/3076388 to your computer and use it in GitHub Desktop.
SQL - order by random
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
SELECT * FROM table ORDER BY NEWID() | |
-- mysql version | |
SELECT * FROM table ORDER BY uuid() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment