Random SQL Query
For my next project I need a sql query for mysql which retrieve random row. After some browsing, I found the sql query. Here it is:
SELECT * FROM table
ORDER BY RAND()
LIMIT 1
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader or subscribe using the form below.

































Comments
No comments yet.
Leave a comment