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

riedelme
hek123 wrote:
I've an urgent problem with a customer in Slovenia. Their national characters show on our webpages as an inverted question mark.

Their core system works ok - and so the database - at least when it comes to NLS.

Is there any settings in Mod/Plsql - that could influence this?

I've posted this question in the Globalization forum - without any answers....

Thanx
Sorry I don't have a direct answer, but maybe some ideas can help spark other ideas.

The inverted question mark appears in SQL*PLUS too when special characters cannot be rendered. Could this be a character set issue - are you using the correct character set to render the special characters? If the character set is correct could this be a conversion issue?
1 - 1
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
535 views