参考:https://blog.csdn.net/haohaizijhz/article/details/83340814 SELECT uid, odate, num, sum(num) over (), sum(num) over (partition by uid), sum(num) over (partition by uid,odate), sum(num) over (order by uid,odate), sum(num) over (order by uid,odate,nu