ITeye博客

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

cetusz · 2011-01-28 11:31 · 调试出错解决方案 · 编程语言 · Markdown

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

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。