摘要: sql 查询距今6 /xx个月 统计数据 select DATE_FORMAT(时间段, '%m') time ,COUNT(*) from 表名字 where date_sub(curdate(), interval 6 month) <= date(时间段) GROUP BY time 带年的: 阅读全文
posted @ 2020-12-14 11:21 飞力飞思 阅读(1414) 评论(0) 推荐(0) 编辑