0

我找不到我们如何使用 DBUtils 来调用可调用语句

我们能否指定哪些字段是输入,哪些字段是重新输出?

4

1 回答 1

1

你只需要使用一个CallableStatement

Connection con = ...; // get the connection
CallableStatement callStatement = con.prepareCall("{CALL yourStoredProcedure()}");
ResultSet rs = callStatement.executeQuery();
// do what you need to do
于 2012-11-19T09:03:40.380 回答