简体   繁体   English

如何在 azure 数据工厂 v2 中创建和设置变量

[英]How to create and set a variable in azure data factory v2

How do I set an variable of type array of strings in ADF v2 so that I can iterate over each element?如何在 ADF v2 中设置字符串数组类型的变量,以便可以遍历每个元素? Each element represents a database name?每个元素代表一个数据库名称?

The 'Set Variable' activity has a dropdown but displays 'no results found'? “设置变量”活动有一个下拉菜单,但显示“未找到结果”?

截屏 Many thanks,非常感谢,

from the official doc:来自官方文档:

Use the Set Variable activity to set the value of an existing variable of type String, Bool, or Array defined in a Data Factory pipeline.使用设置变量活动来设置数据工厂管道中定义的字符串、布尔或数组类型的现有变量的值。

https://docs.microsoft.com/en-us/azure/data-factory/control-flow-set-variable-activity https://docs.microsoft.com/en-us/azure/data-factory/control-flow-set-variable-activity

You'll need to use the pipelines Variable first:您需要首先使用管道变量:

在此处输入图像描述

You can also find a good tutorial in here: https://www.mssqltips.com/sqlservertip/6136/azure-data-factory-pipeline-variables/您还可以在这里找到一个很好的教程: https://www.mssqltips.com/sqlservertip/6136/azure-data-factory-pipeline-variables/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM