Home > Database > Mysql Tutorial > body text

java jdbc连接mysql数据库插入null值问题

WBOY
Release: 2016-06-06 09:44:59
Original
2353 people have browsed it

mysqlnull值jdbcjava空值

ps.setFloat(8, device.getLatitude());如果device.getLatitude()返回的是null就报错,也就是说setFloat不能插入空值,而setString()方法就可以,不知道为什么请高手指点,谢谢!!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template