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.
我们如何将 pl sql 过程的结果检索到 java 类并在 java 中进行操作?
您用于CallableStatement执行该过程,然后getResultSet()对多个结果集使用getMoreResults().
CallableStatement
getResultSet()
getMoreResults()
你可以参考这个java代码,
CallableStatement cstmt = con.prepareCall("{call simpleprocedure(?)}"); cstmt.setString(1, "param"); ResultSet rs = cstmt.executeQuery();