根据日统计:

select  year(create_datetime),month(create_datetime),day(create_datetime),count(*) from redpacket group by year(create_datetime),month(create_datetime), day(create_datetime);

根据周统计:

select FROM_DAYS(TO_DAYS(create_datetime) -MOD(TO_DAYS(create_datetime) -2, 7)) AS week from redpacket group by week;

根据月统计:

select count(*) from redpacket group by year(create_datetime),month(create_datetime);