char « JDBC « Java Database Q&A





1. JDBC - How to set char in a prepared statement    stackoverflow.com

I cannot find any method like

char c = 'c'; preparedStatement.setChar(1, c);
How to set character to a prepared statement?

3. prepared statement and DB field char    coderanch.com

Hi, I have a field in Database which is of CHAR(11) type. I am using prepared statement to set parameter value in this field in Java in DAO class. I used setString method of prepared statement for this purpose but i didnt get any success in it. Can any one help me which prepared statement method should I use to set ...

4. How to get Char in PreparedStatement.    forums.oracle.com