ibatis - executebatch() 함수에 대해..
글쓴이: domiisa / 작성시간: 수, 2014/02/12 - 3:36오전
안녕하십니까.
바로 본론으로 여쭤보겠습니다.
현재 로직이 대강 아래와 같습니다.
try{ sqlmap.startbatch(); if(...){ for(105번 반복){ insert(쿼리문...); } if( 10개모이면 커밋 ){ sqlmap.executebatch(); sqlmap.commitTransaction(); } } //나머지 커밋 sqlmap.executebatch(); sqlmap.commitTransaction(); }catch(){ }
이럴때 sqlmap.executebatch(); 여기들어간 insert문중 error문이 있으면 커밋을 못합니다.
제가 바라는건 중간에서 에러가 나더라도 에러난 구문 제외하고 모두 insert,commit 되도록 하고 싶은데
혹시 방법이 있을까요???
고수님들 도움좀 바랍니다..
Forums:
댓글 달기