摘要: 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 阅读全文
posted @ 2022-02-17 17:48 冉溪 阅读(91) 评论(0) 推荐(0) 编辑
摘要: select year_flag,month_flag,field,SUM(field) OVER (PARTITION BY year_flag ORDER BY month_flag)from table ; 阅读全文
posted @ 2022-02-17 17:41 冉溪 阅读(474) 评论(0) 推荐(0) 编辑
摘要: (1) INSERT INTOINSERT INTO tableVALUES ('aaa' , 111),('bbb' , 222); (2) insert overwrite insert overwrite table table(partition = '202301')select fiel 阅读全文
posted @ 2022-02-17 17:34 冉溪 阅读(527) 评论(0) 推荐(0) 编辑