JDBC CallableStatement to return boolean?
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);