Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
3 answers
3k views

How to optimize mysql group by with DATE_FORMAT

I have a sql. select count(id) as total, DATE_FORMAT(create_time,"%Y-%m-%d") as create_date from table_name group by DATE_FORMAT(create_time,"%Y-%m-%d"); Then Definition of column ...
dai's user avatar
  • 1,075