note 23003 deleted from function.rand by vincent
| From: | vincent@php.net | Date: | Tue, 12 Aug 2003 11:00:17 +0000 |
| Subject: | note 23003 deleted from function.rand by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53993@lists.php.net to get a copy of this message | ||
Note Submitter: admin@theangryangel.co.uk
----
jeff@eksx.no-ip.com ->
In MySQL 3.23 or greater, the following query selects a random row :
SELECT * FROM tablename ORDER BY RAND() LIMIT 1
this does work