I have a column type char in a sybase database. what do I need to do in
the preparedStatement to set a string type to char?
Thanks in advance
> I have a column type char in a sybase database. what do I need to do in
> the preparedStatement to set a string type to char?
PreparedStatement's setString is the correct method to call for the SQL
CHAR data type. Unless you're calling setNull, you don't need to
specify the type. If you are calling setNull, then you may specify the
type as java.sql.Types.CHAR.

Signature
Chris Smith - Lead Software Developer / Technical Trainer
MindIQ Corporation