Re: grouping a mysql datetime col by month?

From: Date: Wed, 07 Aug 2002 12:31:54 +0000
Subject: Re: grouping a mysql datetime col by month?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-21046@lists.php.net to get a copy of this message
On Wed, 7 Aug 2002 13:29:02 +0100 "Dave Carrera" <dave@davecarrera.com> wrote: > This is a continuation from my last post a I was wondering after looking > > at my db if you can group by the month part of the datetime stamp I use > in my MySql db > > so the sql would probably look like this > > select * from table group by datetime[month] > > So that all month 08 is group and 09 and 10 and so on. > > I can't find a simple answer to this so I beg your guidance. > > Thank you in advance Did you look Adam's response to your last post ? that is exactly what you need. hth pa

« previous php.db (#21046) next »