View Full Version : randomly choose a row from a result
AN-net
03-16-2004, 02:30 AM
how would i achieve this? like say i chose everything from a table how would i randomly choose 5 rows from it?
Boofo
03-16-2004, 02:53 AM
ORDER BY RAND()
LIMIT 5
AN-net
03-16-2004, 02:05 PM
thanks yet again boofo;)
Boofo
03-16-2004, 04:29 PM
You are very welcome, sir. ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.