CallableStatement proc = null; try { proc = con.prepareCall("{call YANGJIANP.reran01()}"); boolean flag = proc.execute(); System.out.println(flag); con.commit(); }catch(Exception e) {
System.out.println(e.getMessage()); }
像上面那样写,为什么输出的结果是“false”?
System.out.println(e.getMessage()); }
像上面那样写,为什么输出的结果是“false”?
我的存储过程中实现的是插入和更新操作,不需要返回结果。返回false是不是不对?