How to cast DATETIME as a DATE in mysql?

Posted by Zachary Burt on Stack Overflow See other posts from Stack Overflow or by Zachary Burt
Published on 2009-09-23T22:11:30Z Indexed on 2010/04/05 6:13 UTC
Read the original article Hit count: 334

Filed under:
|
|

My query is this. I have a bunch of entries and i want to group them by date. But instead of having date in my database, I have a datetime field. What do I do?

select * from follow_queue group by follow_date cast follow_date as date

That's not working.

Thanks!

© Stack Overflow or respective owner

Related posts about mysql

Related posts about datetime