How To Select Random Records Using MySQL
erics, Posted September 28th, 2011 at 3:25:48pm
1 2 3 4 5 |
SELECT * FROM yourTable WHERE yourField='WhatYouWishToFindGoesHere' ORDER BY RAND() LIMIT 5 |
Leave Your Comment
All fields marked with "*" are required.