Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JDBC CallableStatement to return boolean?

Stanley Lee-OracleJul 1 2009 — edited Jul 1 2009
Hi,

I would like to use JDBC to call a PL/SQL function and it returns a boolean type. However I do not see JDBC support it. Is there a way to do that? Thanks.

CallableStatement cs = conn.prepareCall ("begin ? := function(?); end;");
cs.registerOutParameter(1,Types.CHAR);
cs.setString(2, "aa");
cs.executeUpdate();
String result = cs.getString(1);

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 29 2009
Added on Jul 1 2009
1 comment
531 views