Re: Difference between setObject and (setShort, setString, and so on) in PreparedStatement



Sorry, i still don't quite get it. So what is the advantage of using
setString..over setObject ?

Actually right now, i need to do some update and insert into the
database. So i was thinking if i can use setObject, then i do not need
to find specifically define which method to use for updating the
particular column.

.