Till I know, the correct way to do this is:
ps.setNull(1, java.sql.Types.INTEGER);
However, on execution, my database column value is showing 4 instead of null.
On checking found that 4 is the static constant value for Types INTEGER.
Where could be the issue ?
Is it related to driver ?
The database is DB2.
可能有一个触发器,可以在插入或更新时修改数据。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.