To select a random row in MySQL you can use the following query.

Sample MySQL

SELECT COLUMNNAME FROM TABLENAME ORDER BY RAND() LIMIT 1

One thought on “How to select a random row in MySQL”

Leave a Reply