CodeCharge Studio

executeUpdate Method (Java)

Applies to

JDBCConnection Object

Syntax

public int executeUpdate(java.lang.String sql);

Return value

int - either the row count for INSERT, UPDATE or DELETE statements, or 0 for SQL statements that return nothing, or -1 if parameter is null

Parameters

Name Type Description
sql String The SQL query string

Description

This method executes the INSERT/UPDATE/DELETE SQL-query.


On-line, printable versions and updates