SQL - Select rand() ?
| From: | James, Yz | Date: | Tue, 17 Apr 2001 20:55:44 +0000 |
| Subject: | SQL - Select rand() ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-49045@lists.php.net to get a copy of this message | ||
Hi Guys,
If I wanted to retrieve just one field randomly from a MySQL table, would I
just use something like:
"SELECT RAND(id) FROM table .... LIMIT 0,1" ?
I suppose the best thing for me to do would be to try it, but I am fast
losing the will to stay awake ;)
Thanks, as always,
James.