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

 

SQL按年月日进行分组

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

 

posted @ 2021-03-15 00:21  十一的杂文录  阅读(766)  评论(0编辑  收藏  举报