你一p_ret的定义太短了吧,你可以加长一点
如:
 p_ret varchar2(3000)

解决方案 »

  1.   

    及p_ret out char
    如何定义长度
      

  2.   

    存储过程没有返回值,通过参数类型out来取值的以下一个例子:
    create or replace procedure name_pro(p_str out varchar2)
    is
    begin
    for m in 1..57 loop
         p_str:=p_str||'第'||to_char(m)||'行'
    end loop;
    end;若想返回值,可以通过函数实现
    function get(....) return varchra2 is
         
         sqlstr varchar2(4000);
       begin
         for m in 1..57 loop
         sqlstr:=sqlstr||'第'||to_char(m)||'行'
         end loop;
         return sqlstr;
       end get;
      

  3.   

    beckhambobo(beckham) 大侠你好
    sqlstr我定义了2048位长度,可在存储过程中,我最多用了几百个字符,就不能再用了,是怎么回事?
      

  4.   

    在oracle不会出现这情况,是否pb问题?若太大可改clob
      

  5.   

    ORA-06502 "PL/SQL: numeric or value error" Cause The valid range for the threshold argument to the Similar( ) function is from 0.0 to 100.0. 
    Action Correct the statement and try again.请贴全相关信息,这个问题很简单.