klyn.databases.sql.Statement.executeUpdate
method

    public executeUpdate(sql as String) as Int throws SQLException

Description

Executes a SQL update (INSERT, UPDATE, DELETE) and returns affected rows.

    import klyn.databases.sql

    count = statement.executeUpdate("delete from sessions")

Throws

- SQLException if the SQL operation cannot be completed because parameters, state, protocol data, or the database response are invalid.