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

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

代码示例1
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);