📜  合并雪花 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:38.377000             🧑  作者: Mango

代码示例2
merge into target using (select k, max(v) as v from src group by k) as b on target.k = b.k
  when matched then update set target.v = b.v
  when not matched then insert (k, v) values (b.k, b.v);