PGSQL计算14天均线
select
(lag(shou,1) over(order by id)+
lag(shou,2) over(order by id)+
lag(shou,3) over(order by id)+
lag(shou,4) over(order by id)+
lag(shou,5) over(order by id)+
lag(shou,6) over(order by id)+
lag(shou,7) over(order by id)+
lag(shou,8) over(order...
原创
2021-01-24 22:11:25 ·
279 阅读 ·
0 评论