Executes the query, and returns the first column of the first row in the result set returned by the query. Extra columns or rows are ignored.
The first column of the first row in the result set, or a null reference if the result set is empty.
NpgsqlCommand Class | Npgsql Namespace