如何将源节点中的两列连接到目标节点中的一列
How to concat two columns in source node into one column in target
有什么方法可以使用 SymmetricDS 连接源中的两列值,并将结果复制到目标节点中的一列中?
提前致谢
使用 Shell 脚本转换 (bsh)。来自 documentation:
This transformation allows you to provide a Bean Shell script in
transform expression and executes the script at the time of
transformation
来自对称 support discussion:
If you are using a bash column transform, data for all columns in the
row being processed are available. Within your script, the column is
available as a pre-defined String variable with the column name. For
example, if your row has a NAME column, you can write bean shell code
such as return NAME.substring(0,4) to truncate a name to the first
four charaters.
有什么方法可以使用 SymmetricDS 连接源中的两列值,并将结果复制到目标节点中的一列中?
提前致谢
使用 Shell 脚本转换 (bsh)。来自 documentation:
This transformation allows you to provide a Bean Shell script in transform expression and executes the script at the time of transformation
来自对称 support discussion:
If you are using a bash column transform, data for all columns in the row being processed are available. Within your script, the column is available as a pre-defined String variable with the column name. For example, if your row has a NAME column, you can write bean shell code such as return NAME.substring(0,4) to truncate a name to the first four charaters.