鍍金池/ 問答/Java  數(shù)據(jù)庫/ mybatise下怎么判斷insert,delete,update是否成功

mybatise下怎么判斷insert,delete,update是否成功

mybatis官方的討論列表,“If the BATCH executor is in use, the update counts are being lost. ” 會(huì)導(dǎo)致返回為-2147482646,而不是正確就返回條數(shù),失敗就返回0,這要怎么判斷是否插入成功?

回答
編輯回答
逗婦惱

這種情況下不報(bào)異常就是成功

2018年8月17日 10:16