报表统计 一年每月数据sql

来源:互联网 发布:thinder 交友软件 编辑:程序博客网 时间:2024/05/23 18:49
select year(create_date) 年,
month(create_date) 月,
sum(1) 合计
from casic_xq_js
where create_date BETWEEN '2017-1-1' and '2017-12-31'
group by year(create_date),
month(create_date)
阅读全文
0 0
原创粉丝点击