Executes a statement that does not return a result set, such as a SQL INSERT, DELETE, or UPDATE statement.
Visual Basic Public Overrides Function ExecuteNonQuery() As Integer
C# public override int ExecuteNonQuery();
The number of rows affected.
The statement is the current ULCommand object, with the ULCommand.CommandText and ULCommand.Parameters as needed.
For UPDATE, INSERT, and DELETE statements, the return value is the number of rows affected by the command. For all other types of statements, and for rollbacks, the return value is -1.
The ULCommand.CommandType cannot be System.Data.CommandType.TableDirect.
|Envoyer votre avis sur cette page par email.||Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|