日期:2014-05-16 浏览次数:20627 次
con.setAutoCommit(false);
			Savepoint first=con.setSavepoint("first");
			ps=con.prepareStatement("update  employees t set t.first_name='guohr1' where t.employee_id=207");
			flag=ps.executeUpdate();
			log.info("flag:"+flag);
			
			Savepoint second=con.setSavepoint("second");
			ps=con.prepareStatement("update  employees t set t.first_name='guohr2' where t.employee_id=207");
			flag=ps.executeUpdate();
			log.info("flag:"+flag);
			
			Savepoint third=con.setSavepoint("third");
			ps=con.prepareStatement("update  employees t set t.first_name='guohr3' where t.employee_id=207");
			flag=ps.executeUpdate();
			log.info("flag:"+flag);
			
			con.rollback(second);