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.