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

相关推荐

牛客网
牛客企业服务