Subject | Stored Procedures with Resultset |
---|---|
Author | robert_difalco |
Post date | 2003-03-30T21:28:31Z |
How do I get a result set back from a stored procedure? I was
expecting something like this:
CREATE PROCEDURE readIdentity( oid INTEGER ) AS
BEGIN
SELECT * FROM Objects WHERE identity=:oid;
END
Then, in JDBC:
CallableStatement st = con.prepareCall( "{call readIdentity(?)}" );
ResultSet rs = st.executeQuery();
I guess I am expecting it to be too easy. But I haven't found any
documentation on this.
TIA,
Robert
expecting something like this:
CREATE PROCEDURE readIdentity( oid INTEGER ) AS
BEGIN
SELECT * FROM Objects WHERE identity=:oid;
END
Then, in JDBC:
CallableStatement st = con.prepareCall( "{call readIdentity(?)}" );
ResultSet rs = st.executeQuery();
I guess I am expecting it to be too easy. But I haven't found any
documentation on this.
TIA,
Robert