This Java blog explains how to pass ‘null’ values to PreparedStatement. Passing ‘null’ to primitive data types is little tricky.
March 2012 archive
Permanent link to this article: https://blog.openshell.in/2012/03/java-essential-tips-how-to-set-null-value-in-java-jdbc-preparedstatement/