PreparedStatement.setNull
Interface Overview | Interface Members |
This Package |
All Packages
public abstract void setNull( int parameterIndex,
int sqlType ) throws SQLException
Parameters
- parameterIndex
- the first parameter is 1, the second is 2, ...
- sqlType
- SQL type code defined by java.sql.Types
Description
Set a parameter to SQL NULL.
Note: You must specify the parameter's SQL type.
Exceptions
SQLException
if a database-access error occurs.