0 votes
in Data Science by

Difference between ExecuteScalar and ExecuteNonQuery

1 Answer

0 votes
by

ExecuteScalar:-It will returns the output value
ExecuteNonQuery:-It will not return any value
ExecuteScalar:-It is used for fetching a single value
ExecuteNonQuery:-It is used to execute insert and update statements
ExecuteScalar:-It does not return the number of affected rows
ExecuteNonQuery:-It will Returns the number of affected rows.

Related questions

+1 vote
asked May 27, 2021 in Data Science by sharadyadav1986
0 votes
asked Dec 24, 2019 in Data Science by sharadyadav1986
...