字符串缓冲区大小太小

时间:2019-04-18 12:19:37

标签: oracle

当我运行以下查询时,出现错误“字符串缓冲区大小太小”。我将如何解决此问题的任何想法将受到高度赞赏。

SELECT 
FacilityKey, 
ProductionDay,  
DBMS_XMLGEN.CONVERT(rtrim( xmlagg(xmlelement(e,comments,chr(10)).extract('//text()') ),chr(10)), 1) AS FacilityComments 
FROM ( 
SELECT fc.code AS FacilityKey,  
       cm.production_day AS ProductionDay, 
       cm.comment_id AS comment_id, 
       cm.comments AS comments 
FROM rv_fcty_class_1 fc, rv_object_item_comment cm 
WHERE fc.object_id = cm.object_id  
AND   fc.production_day = cm.production_day
AND   fc.production_day  BETWEEN TO_DATE('2019-04-01', 'YYYY/MM/DD')  and TO_DATE('2019-04-17', 'YYYY/MM/DD')
AND   fc.code  IN ('EA_FPSO','BONGA_FPSO') 
ORDER BY cm.comment_id 
) GROUP BY FacilityKey, ProductionDay 

0 个答案:

没有答案