if we want to deal with a database, two things will happen: ie; Change Retrieving
Modification:
In the “Editing” section, we have “Insert”, “Delete”, “Update”, “Requests”. To do this, we need to use the ExecuteNonQuery.why command, because we do not query the database, we modify it.
Syntax:
cmd.ExecuteNonQuery
Extract:
Select Statement. ExecuteReader(), ExecuteScalar()
Query, . ExecuteReader()
Query, . ExecuteScalar()
:
cmd.ExecuteReader()
cmd.ExecuteScalar()
(ExecuteReader(), ExecuteScalar(), SqlCommand.ExecuteNonQuery()) , SqlCommand. , .