Connection.executeNonSelectCommand

int executeNonSelectCommand(string sql)

This is a convenience function to execute a SQL command over the opened connection. For the returned value, see [gda.connection.Connection.statementExecuteNonSelect]'s documentation.

Parameters

sqla query statement that must not begin with "SELECT"

Returns

the number of rows affected or -1, or -2

Throws

[ConnectionException]