摘要:
select date_flag,category_flag,field,LAG(filed, 1) OVER (PARTITION BY category_flag ORDER BY date_flag) --同组前一个,LEAD(filed, 1) OVER (PARTITION BY cate 阅读全文
摘要:
select year_flag,month_flag,field,SUM(field) OVER (PARTITION BY year_flag ORDER BY month_flag)from table ; 阅读全文
摘要:
(1) INSERT INTOINSERT INTO tableVALUES ('aaa' , 111),('bbb' , 222); (2) insert overwrite insert overwrite table table(partition = '202301')select fiel 阅读全文