Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.35 KB

File metadata and controls

47 lines (34 loc) · 1.35 KB
title setNull Method (int, int)
description setNull Method (int, int)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerPreparedStatement.setNull (int, int)
apitype Assembly

setNull Method (int, int)

[!INCLUDEDriver_JDBC_Download]

Sets the designated parameter to a null value, given the type of parameter to set.

Syntax

  
public final void setNull(int index,  
                          int jdbcType)  

Parameters

index

An int that indicates the parameter number.

jdbcType

A JDBC type code that is defined by java.sql.Types.

Exceptions

SQLServerException

Remarks

This setNull method is specified by the setNull method in the java.sql.PreparedStatement interface.

See Also

setNull Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Members
SQLServerPreparedStatement Class