Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.49 KB

File metadata and controls

52 lines (39 loc) · 1.49 KB
title setNull Method (int, int) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
SQLServerPreparedStatement.setNull (int, int)
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid 7e7f08e9-278a-495a-8ce3-ca173d055021
author David-Engel
ms.author v-daenge

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