When setting a null
value,
Should we always use the value
java.sql.Types.NULL
?
Does the following code work for all types?:
preparedStatement.setNull(index, java.sql.Types.NULL);
Why would someone choose to use another type like so?:
preparedStatement.setNull(index, java.sql.Types.INTEGER);