最近在用jdbc的批处理,在使用过程中出现了批处理当中的几条sql语句有问题导致出错。具体解决方案如下:
try{
pstmt.executeBatch();
}catch(SQLException e){
while (e != null) {
System.out.println("Message: " + e.getMessage ());
e = e.getNextException();
System.out.println("..........."+e);
}
}