我找不到如何使用DBUtils来调用可调用语句
我们可以指定哪些字段是输入以及哪些字段都是输出?
答案 0 :(得分:1)
您只需使用CallableStatement
Connection con = ...; // get the connection
CallableStatement callStatement = con.prepareCall("{CALL yourStoredProcedure()}");
ResultSet rs = callStatement.executeQuery();
// do what you need to do