Sunday, May 16, 2010

Selecting random record from MySQL database table

SELECT * FROM table ORDER BY RAND() LIMIT 1

No comments:

Post a Comment