67,512
社区成员
发帖
与我相关
我的任务
分享
tx = session.beginTransaction();
Connection con=session.connection();
String procedure = "{call batchUpdateCustomer(?) }";
CallableStatement cstmt = con.prepareCall(procedure);
cstmt.setInt(1,0); //把年龄参数设为0
cstmt.executeUpdate();
tx.commit();
Connection con=session.connection();
String procedure = "{call batchUpdateCustomer(?) }";
CallableStatement cstmt = con.prepareCall(procedure);
tx = session.beginTransaction();
cstmt.setInt(1,0); //把年龄参数设为0
cstmt.executeUpdate();
tx.commit();