Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找不到有关从结果集中获取浮点数或如何将浮点数存储在准备好的语句中以创建查询以插入浮点数的任何信息。是否有可能做到这一点?我应该使用 char 数组存储它们吗?提前致谢
对于结果检索,我希望您使用ResultSet::getDouble- for 语句,PreparedStatement::setDouble.
ResultSet::getDouble
PreparedStatement::setDouble
似乎没有float具体的适应,但基础列定义将是FLOATor DOUBLE。
float
FLOAT
DOUBLE