xiaoxiangz
asked on
ResultSet getObject question?
Hi, I am using ResultSet.getObject method to
retrieve Oracle data through JDBC . If I use
getString , it works. But when I use getObject
, I got all null. The data type in Oracle table is number, the responding java data type should be
BigDecimal.
Thanks.
Sean
retrieve Oracle data through JDBC . If I use
getString , it works. But when I use getObject
, I got all null. The data type in Oracle table is number, the responding java data type should be
BigDecimal.
Thanks.
Sean
why don't you use resultset.getBigDecimal().
ASKER
Well, in the future, the oracle table may contain
other type of fields, such date and integers. So I want to use getObject().
other type of fields, such date and integers. So I want to use getObject().
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.