Microsoft SDK for Java

executeUpdate

This method of the Connection class has the following signatures:

executeUpdate(String commandText)
executeUpdate(String commandText, int options)

executeUpdate(String commandText)

Syntax

public int executeUpdate(String commandText);

Return Value

Returns an integer designating the affected records.

Parameters

commandText A String that contains the SQL statement, table name, stored procedure, a URL, or provider-specific text to execute.

executeUpdate(String commandText, int options)

Syntax

public int executeUpdate(String commandText, int options);

Return Value

Returns an integer designating the affected records.

Parameters

commandText A String that contains the SQL statement, table name, stored procedure, a URL, or provider-specific text to execute.
options Optional. A Long value that indicates how the provider should evaluate the CommandText property of the Command object. Can be one or more CommandType or ExecuteOption values.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.