Npgsql API Documentation |

# NpgsqlCommand.ExecuteNonQuery Method

[This is preliminary documentation and subject to change.]

Executes a SQL statement against the connection and returns the number of rows affected.

[Visual Basic]
NotOverridable Public Function ExecuteNonQuery() As Integer Implements _
IDbCommand.ExecuteNonQuery
[C#]
public int ExecuteNonQuery();

#### Return Value

The number of rows affected.

#### Implements

IDbCommand.ExecuteNonQuery

#### See Also

NpgsqlCommand Class | Npgsql Namespace