定义了一个table字段mm(varchar2(4000)),输入一段文字保存,提示如题错误,用length()获得长度为711。
为什么?怎样解决?
oracle8.1.4.1

解决方案 »

  1.   

    ORA-01480 trailing null missing from STR bind valueCause: A bind variable of type 5 (null-terminated string) does not contain the
    terminating null in its buffer.Action: Terminate the string with a null character.
      

  2.   

    plsql中不用代码
    程序里就用一般的update,将值封装在bean中
      

  3.   

    我也有类似的问题.
    procedure test(strtest in varchar2  default '')
      is           
      begin   
             execute IMMEDIATE strtest;
      end;
    当strtest的长度超过2040时,就出现错误ORA-01480 trailing null missing from STR (STR 赋值变量缺少空后缀)