Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 2.42 KB

File metadata and controls

32 lines (26 loc) · 2.42 KB
title executeUpdate Method (SQLServerStatement)
description executeUpdate Method (SQLServerStatement)
author David-Engel
ms.author davidengel
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference
apilocation sqljdbc.jar
apiname SQLServerStatement.executeUpdate
apitype Assembly

executeUpdate Method (SQLServerStatement)

[!INCLUDEDriver_JDBC_Download]

Runs the given SQL statement, which can be an INSERT, UPDATE, or DELETE statement; or a SQL statement that returns nothing, such as a SQL DDL statement. Beginning in [!INCLUDEmsCoName] [!INCLUDEssNoVersion] JDBC Driver 3.0, executeUpdate will return the correct number of rows updated in a MERGE operation.

Overload List

Name Description
executeUpdate (java.lang.String) Runs the given SQL statement, which can be an INSERT, UPDATE, DELETE, or MERGE statement; or a SQL statement that returns nothing, such as a SQL DDL statement.
executeUpdate (java.lang.String, int) Runs the given SQL statement and signals the [!INCLUDEjdbcNoVersion] with the given flag about whether the auto-generated keys produced by this SQLServerStatement object should be made available for retrieval.
executeUpdate (java.lang.String, int[]) Runs the given SQL statement and signals the JDBC driver that the auto-generated keys that are indicated in the given array should be made available for retrieval.
executeUpdate (java.lang.String, java.lang.String[]) Runs the given SQL statement and signals the JDBC driver that the auto-generated keys that are indicated in the given array should be made available for retrieval.

See Also

SQLServerStatement Members
SQLServerStatement Class