What values ExecuteNonQueryare returned if the update, insert, deleteare successful, at the same time, when they were unsuccessful?
ExecuteNonQuery
update
insert
delete
ExecuteNonQuery returns the number of rows affected.
For UPDATE, INSERT, and DELETE statements, the return value is the number of rows affected by the command.
You can find suitable reference material, SqlCommand.ExecuteNonQueryMethod .
SqlCommand.ExecuteNonQuery
Quote directly:
Executes a Transact-SQL statement for the join and returns the number of rows affected.
So...
UPDATE, INSERT DELETE , . โโ , , , , . , -1. , -1.
, , (-) -1.
1.
Source: https://habr.com/ru/post/1525604/More articles:How to use the Code First approach for a single table in an existing database that already has many tables - c #css triangles missing - htmlWhat are these "# document-fragment" elements in input elements in the Chrome Inspector? - google-chromeConfiguring MVP matrix in OpenGL - c ++Type error in the extended BaseAdapter class - androidRemove spaces around bars in PDF format - rError installing Mapnik on openSUSE 12.3 - c ++ 11Gradle hides files when building a war - javazoom textview with image and text (Html โโcontent) in android - androidHow to change div color when scrolling gradient? - javascriptAll Articles