sql="update pets set OWNER_ID=null where id=?";
try {
this.pst=this.con.prepareStatement(sql);
this.pst.setInt(1, p.getId());
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}try {
count=this.pst.executeUpdate(); //执行到这里就不动了 但是还不报错 这是什么原因?
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
this.CloseAll();
}
return count;
try {
this.pst=this.con.prepareStatement(sql);
this.pst.setInt(1, p.getId());
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}try {
count=this.pst.executeUpdate(); //执行到这里就不动了 但是还不报错 这是什么原因?
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
this.CloseAll();
}
return count;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货