可以用一条语句得到每个月的记录条数吗?如题[解决办法]select datepart(month,日期字段) 月份,count(*) 记录数 from 表名 where datepart(yy,日期字段)= '要查询的年 ' group by datepart(mm,日期字段)