Re: How to find random records in a subset?
| From: | Brian Dunning | Date: | Fri, 03 Jun 2005 14:04:22 +0000 |
| Subject: | Re: How to find random records in a subset? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-216314@lists.php.net to get a copy of this message | ||
On Jun 3, 2005, at 6:48 AM, Marek Kilimajer wrote:
Brian Dunning wrote:Because I wouldn't get all 50 records that I need - I'd only get the few out of the 50 that happened to be in the needed subset.I am using a routine to find 50 random records in a large MySQL database (about a million records) where I generate a list of 50 random unique ID's,why can't you use the where condition in the above query?