CartMetrix - Do you know yours?

« Apple in the Enterprise? v2 | Home | Check for Listening Services »

8/12/2005

Select a Random Row in MySQL

Select a single random record from tablename:

SELECT * FROM tablename ORDER BY RAND() LIMIT 1

Order a result set randomly:

SELECT * FROM tablename ORDER BY RAND()

Popularity: 7%

Trackback:

Related Posts

Post your opinion

Verification Image

Please type the letters you see in the picture.

Subscribe without commenting


damonparker.org is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

copyright © 2002-2009 damonparker.org. all rights reserved.

Close
E-mail It