把你的function 贴出来看看。

解决方案 »

  1.   


    把那条SQL单独执行是只返回一条个记录啊
    ORA-01422
    因为我只能远程操作这个数据库,不能够把内容给COPY下来~
    不知道给的这点信息够用不?
      

  2.   

    ORA-01422 exact fetch returns more than requested number of rows
    Cause: The number specified in exact fetch is less than the rows returned.
    Action: Rewrite the query or change number of rows requested.
      

  3.   

    ORA-01422 exact fetch returns more than requested number of rowsCause: The number specified in exact fetch is less than the rows returned.Action: Rewrite the query or change number of rows requested.more than requested number of rows
    还是返回太多行
      

  4.   

    create or replace function get_value(
    omc_id in neobject.omc_id%TYPE,
    object_class neobject.object_class%TYPE)
    return objects.int_id%type isResult objects.int_id%type;
    temp1 objects.int_id%type;
    temp2 objects.int_id%type;begin
    SELECT int_id  INTO temp1
    FROM neobject
    WHERE
    omc_id = omc_id
    AND object_class = object_class; SELECT int_id INTO temp2
    FROM objects
    WHERE object_class =100
    AND omc_id=omc_id;
    RESULT := temp1
    if temp1 is null then RESULT := temp2;
    end if;
    return (Result);
    end get_value;
      

  5.   

    ORA-06512
    是什么?你们在那查到那样的说明呢?
      

  6.   

    ORA-06512 at string line string
    Cause: Backtrace message as the stack is unwound by unhandled exceptions.
    Action: Fix the problem causing the exception or write an exception handler
    for this condition. Or you may need to contact your application administrator
    or database administrator.你的邮箱,给你发个
      

  7.   

    SELECT  max(int_id)    INTO  temp1  
                           FROM  neobject  
                           WHERE  
                           omc_id  =  omc_id  
                           AND  object_class  =  object_class;  
     
                           SELECT  max(int_id)  INTO  temp2  
                           FROM  objects  
                           WHERE  object_class  =100  
                           AND  omc_id=omc_id;  
      

  8.   

    行了~谢谢 bzszp(SongZip)