Is there is any way to get the select Random Records using query from table in mySql.
views:
27answers:
2
+2
A:
How about something like
SELECT * FROM `table` ORDER BY RAND() LIMIT 0,1;
astander
2010-03-09 07:17:56
thanks astander
Yashwant Chavan
2010-03-09 07:20:29
A:
SELECT * FROM `table` WHERE RAND() < 0.5
change the percentage to include more or less records. add a LIMIT
clause to, well, limit to a maximum number of records
knittl
2010-03-09 07:40:04