Log in

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. ;)