Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
単一の値を返す文を実行します。
Public Overrides Function ExecuteScalar() As Object
public override object ExecuteScalar()
結果セットの最初のローの最初のカラム。結果セットが空の場合は NULL 参照。
複数のローとカラムを返すクエリでこのメソッドが呼び出されると、最初のローの最初のカラムのみが返されます。