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
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With