11 Eylül 2007 Salı

Getting Random Rows

Selecting Random rows from a MySQL table

select * from myTable order by rand() limit 5

'Returns 5 random rows from table myTable

Hiç yorum yok: