Return random ordered records in MySQL
SELECT *
FROM xxx
ORDER BY RAND()
LIMIT 5
Written by Sun Ning
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mysql
Authors
Related Tags
#mysql
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#