postgresSql/pgsql 函数使用[json[数组]解析、每日累计,字符串拼接、去重、排序 等]
每日累计计算历史数据每日累计:sum(num)over(orderbydt_date)selectid,dt_date,sum(num)over(orderbydt_date)asnumfrom(selectid,dt_date,sum(num)asnumfrommatinggroupbyid,dt_date)agroupbyid,dt_date,num分区内每日累计:sum(num)over(p