我的问题是这样的: 例如,我有一个包含三列的表,其中 SQL Server table1(id, number1, number2) 和 other table2(id,finalNumber)。如何进行有条件复制?我想复制 table2(finalNumber) 中每行的较大数字。我想到了 LookUp->IfConditionally 但它不起作用。
最佳答案
来自 IfCondition activity document 中的示例,它可用于引用查找事件的输出数据。例如@{activity('MyLookupActivity').output.firstRow.count}
。你可以引用我之前的案例:Referencing JSON payload value in Azure Data Factory for If condition
此外,还有一个想法是使用存储过程。你可以这样做link在 sql server sink 中配置 sql server 存储过程.
然后就可以将源表中的数据复制到临时表中,并在存储过程中进行数字对比业务和插入操作。我之前的案例中做了非常详细的步骤:Azure Data Factory mapping 2 columns in one column引用一下。
有任何疑问,请告诉我。
关于azure - 如何根据值复制Azure数据工厂中的数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55539415/