Re: how can I do?
| From: | 1LT John W. Holmes | Date: | Thu, 19 Sep 2002 18:56:43 +0000 |
| Subject: | Re: how can I do? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-21854@lists.php.net to get a copy of this message | ||
> Or this works well too and might be faster for the DB.
>
> SELECT * FROM SomeTable WHERE create_date BETWEEN $start_date AND
> $end_date
Benchmark it yourself, but I've found that BETWEEN is slower. It's easier to
read, though.
---John Holmes...