首先使用SQL的记录和以前的记录
我有一个文件需要将数据插入看起来像这样的表中:
我需要将每个记录与DTL开始的每条记录与以DT2开头的记录开头。
在Informatica中,Soultion看起来像这样:
/I.SSTATIC.NET/RRQQQ.PNG“ ALT =”在此处输入图像描述“>
文件仅像一列一样加载。
I have a file from which I need to insert data into table that looks like this:
I need to concatenate every record that starts with DTL with the record that starts with DT2 behind it.
In Informatica that soultion looks like this:
The file is loaded like one column only.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于上一行结果,也可以使用滞后 -
在上述查询中,结果为 -
For previous row result, LAG can also be used -
With above query, it results as -
尝试这样的东西:
Try with something like this:
整行数据似乎被读为一个
record_detail
端口(将其视为列)。因此,该单个端口被加载到目标数据库中的单列中。为了将单独的列加载,您需要将文件读取为划界。在这种情况下,使用管道(
|
)作为定界符。现在,您提到您需要“串联每个记录” - 对我的理解,这意味着将所有行的所有列串联。这正是那里发生的事情。
Whole row of data seems to be read into one
RECORD_DETAIL
port (think of that as a column). Hence, this single port is loaded into single column in your target DB.In order to have separate columns loaded, you need to read the file as a delimited one. In this case using pipe (
|
) as the delimiter.Now, you mention you need to "concatenate every record that" - to my understanding this would mean concatenating all columns of all rows. And this is exactly what happens there.