SELECT * FROM table_name ORDER BY RAND(); Found at http://www.mysql.com/doc/M/a/Mathematical_functions.html use: SELECT * FROM table_name ORDER BY RAND() limit 1; If you only want one result not all of them.
- 7 Bu dökümanı faydalı bulan kullanıcılar:
SELECT * FROM table_name ORDER BY RAND(); Found at http://www.mysql.com/doc/M/a/Mathematical_functions.html use: SELECT * FROM table_name ORDER BY RAND() limit 1; If you only want one result not all of them.