骡子选择像通配符失败的查询一样的位置



如何在 Mule 中使用通配符执行具有类似参数的查询。

我希望使用

select OrganizationID from organizations where webaddress like '%#[flowVars['FromAddressDomain']]'
<jdbc:outbound-endpoint exchange-pattern="request-response" queryKey="LookUpOrg" queryTimeout="-1" connector-ref="IssueTrakDataConnector" doc:name="DatabaseLookupOrg">
        <jdbc:query key="LookUpOrg" value="select OrganizationID from organizations where webaddress like ('%#[payload]')"/>
    </jdbc:outbound-endpoint> 

但由于存在引号,此操作会失败并出现错误,删除它们会产生不同的错误。

前者=假}。消息有效负载的类型为:字符串异常原因::com.microsoft.sqlserver.jdbc.SQLServer异常:索引 1 超出范围。

请帮忙。

问候桑托什

尝试使用 CONCAT() 函数。

select OrganizationID from organizations where webaddress like CONCAT('%', #[payload:?])

相关内容

最新更新