note 101781 deleted from function.rand by danbrown
| From: | danbrown@php.net | Date: | Tue, 11 Jan 2011 15:37:29 +0000 |
| Subject: | note 101781 deleted from function.rand by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175635@lists.php.net to get a copy of this message | ||
Note Submitter: Bjarki
----
@Jesse 22-Dec-2010 07:13
Please don't do that. Try this query instead:
SELECT row FROM table ORDER BY RAND() LIMIT 1;