Share via


SqliteCommand.ExecuteNonQuery Method

Definition

Executes the CommandText against the database.

public override int ExecuteNonQuery ();
override this.ExecuteNonQuery : unit -> int
Public Overrides Function ExecuteNonQuery () As Integer

Returns

The number of rows inserted, updated, or deleted. -1 for SELECT statements.

Exceptions

A SQLite error occurs during execution.

Applies to