ExecuteScalar Method
Definition
ExecuteScalar(DataStatement)
Executes the command statement, and returns the value from the first column of the first row in the result set. Additional columns or rows are ignored.
public object ExecuteScalar(DataStatement statement)
Parameters
statementDataStatementThe command statement to execute.
Returns
- object
The first column of the first row in the result from
statement.