8.4.25 setNull(int parameterIndex,int sqlType)
- Organization of this subsection
(1) Function
This method sets the null value in a specified dynamic parameter.
(2) Format
public synchronized void setNull(int parameterIndex,int sqlType) throws SQLException
(3) Arguments
- int parameterIndex
-
Specifies the number of a dynamic parameter.
- int sqlType
-
Specifies JDBC's SQL data type.
This argument is ignored, if specified.
(4) Return value
None.
(5) Exceptions
The JDBC driver throws an SQLException in the following cases:
-
The PreparedStatement object is closed.
-
The Connection object that created this PreparedStatement object is closed.
-
A nonexistent dynamic parameter number was specified.