Answers for "executescalar vs executereader vs executenonquery"

C#
1

difference between executescalar and executenonquery and executereader

ExecuteScalar() only returns the value from the first column of the first row of your query.
ExecuteReader() returns an object that can iterate over the entire result set.
ExecuteNonQuery() does not return data at all: only the number of rows affected by an insert, update, or delete
Posted by: Guest on October-14-2021

Code answers related to "executescalar vs executereader vs executenonquery"

C# Answers by Framework

Browse Popular Code Answers by Language