Variable Visions

How to execute a random SQL query

Published Sun. Sep. 16, 2012

SELECT * FROM `tablename` ORDER BY RAND()

rather than...ORDER BY updatedfieldname DESC

Keywords:ordery by, rand()