问题:
1、存储过程中@id int =23 output好像没用到
2、Java中应用存储过程
CallableStatement cstmt = ccon.prepareCall("{call 存储过程名}");
cstmt.execute(); //因为存储过程里即有更新又有查询
int i = cstmt.getUpdateCount();
ResultSet rst = cstmt.getResultSet();
以上代码在你的程序中好像找不到
1、存储过程中@id int =23 output好像没用到
2、Java中应用存储过程
CallableStatement cstmt = ccon.prepareCall("{call 存储过程名}");
cstmt.execute(); //因为存储过程里即有更新又有查询
int i = cstmt.getUpdateCount();
ResultSet rst = cstmt.getResultSet();
以上代码在你的程序中好像找不到
String strSql = "exec companyForTest";
stmt.execute(strSql);
ResultSet reset = stmt.getResultSet();
int i = cstmt.getUpdateCount();
i是ResultSet的个数吗??
i应该是更新纪录的数目吧?