使用talend

问题描述

我使用 Talend Studio 和对象 tFileInputDelimited row1(Main) 到 tOracleOutput 我想要的是将 xml 文件中的数据传输到 Oracle 表。 我想将我的 excel 文件的最后两列(product_label 和 email_order)的值传输到具有此列结构的产品表(PRODUCT_ID、PRODUCT_CODE、PRODUCT_LABEL、EMAIL_COMAND ORDER_ID)。 另外,如果我的 excel 文件中的一行包含一个空的产品代码列,我想处理这种情况,然后不插入列值 product_label 和 email_command。

XML File to load

Product table

enter image description here

tFileInputDelimited 中的正确设置是什么,或者我需要使用其他工具吗?

解决方法

Refer this image for your reference

使用 tFileInputXMl 文件并使用 tFilterRow 过滤记录,然后与 tOracleOutput 连接