Statement.executeUpdate
Interface Overview | Interface Members | This Package | All Packages
Syntax
public abstract int executeUpdate( String sql ) throws SQLException
Parameters
- sql
a SQL INSERT, UPDATE or DELETE statement or a SQL statement that returns nothing
Returns
either the row count for INSERT, UPDATE or DELETE or 0 for SQL statements that return nothing
Description
Execute a SQL INSERT, UPDATE or DELETE statement. In addition, SQL statements that return nothing such as SQL DDL statements can be executed.
Exceptions
SQLException if a database-access error occurs.