SQL中使用年月日来进行分组

时间:2021-03-16 13:54:07   收藏:0   阅读:0

 

SQL按年月日进行分组

select count(project_name), create_at from table_a group by date_format(create_at, %Y%m%d);

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!