扫码关注官方订阅号
写了好久,是在写不出来,请教大神。
其实是有点难度的
闭关修行中......
select count(ID) as counts, USER_ID,GROUP_ID,DATE_FORMAT(PTIME, '%Y-%m') AS timer FROM FILE_INFO GROUP BY timer,USER_ID,GROUP_ID
select user_id,date_format(ptime,'%Y%m') month,group_id,count(*) num from file_info group by user_id,date_format(ptime,'%Y%m'),group_id;
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
闭关修行中......