我使用 tMSQLInput_1 创建了一个 Talend MS Sql 作业并插入了我自己的查询。下面是我的查询示例。
if object_id('tempdb..#lang_guid')is not null
drop table #lang_guid;
create table #lang_guid(
patient_guid varchar(255)
,accountid varchar(255)
);
insert into #lang_guid
select c.customerid
,'0000001'
from customer c with(nolock)
select patient_guid
,accountid
from #lang_guid
我遇到的问题是查询从表中提取病人的 GUID,而不是我在临时表中动态创建的帐户 ID。当我在 Talend 中运行作业时,它返回病人 GUID,但我没有获得 accountid 的任何数据。以前有人在 Talend 中遇到过这个问题吗?如果是,我该如何修复它。
最佳答案
在 tMssqlInput 中,如果单击“猜测架构”,您可以看到从查询中检测到的列。
关于Talend tMSSQLInput,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31619653/