Question:-
What is the difference between ExecuteScalar and ExecuteNonQuery?
Answer:-
ExecuteScalar returns output value where as ExecuteNonQuery does not return any value but the number of rows affected by the query. ExecuteScalar used for fetching a single value and ExecuteNonQuery used to execute Insert and Update statements.
Students (2)
Ask


Amit
Ask


Anil
Recommended Classes

Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional

Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional

Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional