Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找不到我们如何使用 DBUtils 来调用可调用语句
我们能否指定哪些字段是输入,哪些字段是重新输出?
你只需要使用一个CallableStatement
CallableStatement
Connection con = ...; // get the connection CallableStatement callStatement = con.prepareCall("{CALL yourStoredProcedure()}"); ResultSet rs = callStatement.executeQuery(); // do what you need to do