Question

I can't find anything about getting floats from a result set or how to store floats in a prepared statement to create a query in order to insert the float number. Is it possible to do this? Should I store them using a char array? Thanks in advance

Was it helpful?

Solution

For result retrieval, I expect you use ResultSet::getDouble - for statements, PreparedStatement::setDouble.

There does not seem to be accommodation for float specifically, but the underlying column definition will be FLOAT or DOUBLE.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top