for ... loop
  begin
  insert into tbname values(...);
  exception when others then
       insert into tberrorlog values...;
  end;
end loop;
...

解决方案 »

  1.   

    然后再从tberrorlog取数据?能不能直接上传给c++那级。
      

  2.   

    要保证一致:
    for ... loop
      begin
      insert into tbname values(...);
      commit;
      exception 
          when others then
           insert into tberrorlog values...;
      end;
    end loop;
       --commit;   <---如果把commit写在这里,在提交的时候如果出错就捕捉不到错误了.
    ...VC的前端来取数据表的数据吧.
      

  3.   

    你可以搜索看一下,存储过程返回结果集的帖子
    返回ref cursor游标