View Single Post
Old 03-29-2010, 07:12 PM   #2 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Here is one way that comes to mind (adapt the select statement to your needs:
SQL Code:
SELECT *, RAND() AS orderByMe FROM tableName WHERE 1 ORDER BY orderByMe LIMIT 1
__________________

Village Idiot is offline  
Reply With Quote