在Teradata中获得XmlAgg功能的问题

时间:2019-01-18 09:54:44

标签: teradata teradata-sql-assistant

在Teradata中使用“ XmlAgg”功能时,出现以下问题。

代码:-

,Trim(Trailing '|' FROM ( XmlAgg(EDW1.sr_part_tracking_desc || '|'   ORDER BY EDW1.req_line_id) (VARCHAR(4000)) ) )

问题:

*** Failure 7548 13 The target type is not large enough to accomodate the results of the cast.

请帮助,这对我来说非常关键。

尝试

substr(Trim(Trailing '|' FROM ( XmlAgg(EDW1.sr_part_tracking_desc || '|'   ORDER BY EDW1.req_line_id) (VARCHAR(4000)) ) ),1,4000) 

但同样的问题。

Trim(Trailing '|' FROM ( XmlAgg(EDW1.sr_part_tracking_desc || '|'   ORDER BY EDW1.req_line_id) (VARCHAR(4000)) ) )

问题:*** Failure 7548 13 The target type is not large enough to accomodate the results of the cast.

0 个答案:

没有答案