表
sql
select year(time) ‘年’ , month(time) ‘月’, user
, score
FROM time
where year(time) = 2019
group by year(time), month(time)
结果
表
sql
select year(time) ‘年’ , month(time) ‘月’, user
, score
FROM time
where year(time) = 2019
group by year(time), month(time)
结果