java - ResultSet.getFloat return 0 instead of NULL -


i using jdbc resultset records database.

resultset.getfloat() //returns 0 null value.  

is there way null value using getfloat() or alternate solution?

you need call resultset.wasnull() test whether last column read had value of sql null.


Comments

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -