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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top