Interested in putting your ad here?
God bless you, MySQL. You're one crazy DBMS. You can actually ORDER BY the RAND() function to get a dataset ordered randomly.
SELECT * FROM T ORDER BY RAND() LIMIT 1;
This selects a random row from table T. Couldn't be easier.
The taskboy blog is a exploration of computer technology by Joe Johnston. Topics of posts include practical examples Perl, PHP, Python and Java as well as book reviews, industry insights and miscellaneous good stuff.
» All posts
» All topics