다음을 통해 공유


ExecuteScalar 메서드

Executes a Transact-SQL statement and returns the first column of the first row as a value type.

오버로드 목록

  이름 설명
공용 메서드 ExecuteScalar(StringCollection) Executes a batch of Transact-SQL statements and returns the first column of the first row as an object value.
공용 메서드 ExecuteScalar(String) Executes a Transact-SQL statement and returns the first column of the first row as an object value.

맨 위로 이동

주의

If multiple batches are specified by using a StringCollection object then the result is an array of value types.