执行下面语句:
select research || '\n\n' || reply from oper a where a.id = 'A200502250408';
发生如下错误:
ORA-01489: result of string concatenation is too longresearch内容长度1894,reply内容长度2099,
请问长度限制是多少,怎么我试验出来的好像是3464的,有何解决办法?

解决方案 »

  1.   

    试验:
    select lpad('1',2000,'0')||lpad('2',2000,'0') from dual;执行成功;

    select lpad('1',2000,'0')||lpad('2',2001,'0') from dual;执行失败,提示上面同样的错误!结论:
    应该是限制4000长度,就如varchar2的限制,3464可能是因为我字段中中文字符的原因。
      

  2.   

    ORA-01489 result of string concatenation is too longCause: String concatenation result is more than the maximum size.Action: Make sure that the result is less than the maximum size.长度限制是4000,你用lengthb测下看看。
    如果的确是超长了,只能够分段了。