📜  按月计算值的总和 mariadb - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:32.245000             🧑  作者: Mango

代码示例1
SELECT MONTHNAME(o_date), SUM(total) 
FROM theTable
GROUP BY YEAR(o_date), MONTH(o_date)