RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DataStoreCommand.ExecuteScalar Method

Executes query and returns first column of first row in result set.

Pascal
function ExecuteScalar: object;
C++
object ExecuteScalar();

ExecuteScalar 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. Returns the value of the first column of the first row or DBNull.Value if no such value exists. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!