Posted by Peter van Schie on 11/03/05 01:07
toedipper wrote:
> I have the following select statement whch gives me a count for
> downloads for previous day.
>
> SELECT
> COUNT(swid)
> FROM
> downloads
> WHERE
> date = current_date()-1
Hi toedipper,
I think you're looking for something like this instead:
SELECT CURRENT_DATE() - INTERVAL 1 DAY;
HTH.
Peter.
--
http://www.phpforums.nl
Navigation:
[Reply to this message]
|