代码之家  ›  专栏  ›  技术社区  ›  DilTeam

将Azure数据工厂的数据流中的数据合并到现有表中

  •  0
  • DilTeam  · 技术社区  · 5 年前

    我正在尝试在Azure数据工厂下创建一个数据流,在执行一些转换后将行插入并更新到表中。当我试图将修改后的数据写入“Sink”时,我选中了两个复选框“Allow insert”和“Allow Updates”。弹出一条消息,告诉我创建“addalterrow”。我要做的只是更新主列是否匹配;否则插入行,但我无法在“Add Alter Row”下找到该方法。

    总而言之,我想把所有的行写回到表中。如果PK列匹配,则更新行;否则插入行。我该怎么做?请不要叫我把桌子截断!

    0 回复  |  直到 4 年前
        1
  •  6
  •   Leon Yue    5 年前

    我解决了,它就行了。我将合并我的两张桌子 TEST2 TEST3 ,所有行都将写入 .

    我的表中的数据 测试2 测试3 :

    enter image description here

    enter image description here

    enter image description here

    首先,使用JOIN方法获取数据 测试2 测试3 :

    enter image description here enter image description here

    enter image description here

    enter image description here

    接收器设置和数据预览:

    enter image description here enter image description here

    检查TEST3中的数据:

    enter image description here

    推荐文章