RE: group by day (unix timestamp provided)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> How can I get mySQL to group stuff by the day? my date 
> coloumn is a UNIX
> timestamp.

SELECT whatever FROM my_table GROUP BY FROM_UNIXTIME(timestamp_col,
'%Y-%m-%d')

Regards
Joakim

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux