hi, I'm trying to pass in a
string object into the PreparedStatement below:
This is the exception I got:
com.ibm.db2.jcc.b.SQLException: The value of input host variable or parameter number "1" cannot be used because of its data type.
The query will smoothly if I use Statement object instead. Please let me know what is wrong with using PreparedStatement?