create or replace procedure P_Task_order
IS
Begin
  insert into REPORT(a,b,c,d,e,f,g,h,i,j,k,
         l,m,n,o,p,q,r,s)
  select * from t1, t2, t3 where t1.a =1 and t1.b = t2.b(+)
         and t2.c = t3.c;  commit;  exception
    when others then
    rollback;
End;
sql如上

解决方案 »

  1.   

    1、查看select * from t1, t2, t3 where t1.a =1 and t1.b = t2.b(+)
             and t2.c = t3.c 出来的结果集数量
    2、exception
        when others then
        rollback;
    给返回个错误,看看是啥内容
      

  2.   

    检查selec中的结果集,是多少就是多少。
      

  3.   


    select * from t1, t2, t3 where t1.a =1 and t1.b = t2.b(+)
             and t2.c = t3.c;
    --这段SELECT结果集,是不是有问题?