note 101886 deleted from function.rand by danbrown
| From: | danbrown@php.net | Date: | Sun, 16 Jan 2011 17:46:04 +0000 |
| Subject: | note 101886 deleted from function.rand by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175798@lists.php.net to get a copy of this message | ||
Note Submitter: Steven
----
A much simpler way to get a random row from a table,
SELECT * FROM table ORDER BY RAND() LIMIT 1;