Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Null integers in Oracle and Java
Hi Everyone.
We're using JDBC to query and populate a database. One of the fields in the Oracle database table is defined as a number(3) and can be null. We are reading this value into a Java variable of type int, but unfortunatley, when the data is null, the Java variable is being initialised to 0 (zero).
Is there any solution to this problem? The data in my database column can be any value in the int range (including zero). I obviously have a similar problem when inserting/updating records.
Thanks for the help
Coakleyj
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Tue Feb 22 2000 - 13:52:10 CST