窗口函数 SELECT MONTH, SUM(sal) over(ORDER BY MONTH ROWS BETWEEN 2 preceding AND current ROW) sum_3 FROM test1