`

jdbc批处理获取中间sql语句出错

阅读更多

最近在用jdbc的批处理,在使用过程中出现了批处理当中的几条sql语句有问题导致出错。具体解决方案如下:

try{
 
  pstmt.executeBatch();
 
 }catch(SQLException e){
      while (e != null) {
		  System.out.println("Message:   "  + e.getMessage ());  
		   e = e.getNextException();  
		   System.out.println("..........."+e);  
		      
		     }  
}
 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics