Eloquera Database
ExecuteScalar Method (query)
NamespacesEloquera.ClientDBExecuteScalar(String)
Returns first object from the query result. Data is retrieved by executing SQL statements. For information on the SQL syntax supported, see the SQL document "Eloquera SQL Reference", Throws an exception if the SQL statement fails to execute.
Declaration Syntax
C#Visual BasicVisual C++
public Object ExecuteScalar(
	string query
)
Public Function ExecuteScalar ( _
	query As String _
) As Object
public:
Object^ ExecuteScalar(
	String^ query
)
Parameters
query (String)
Query to execute
Return Value
The object corresponding to the requested query.
Remarks
If the query returns multiple objects, only the first one will be returned. If the query results in the empty set, null is returned.
Examples
CopyC#
Book book = (Book)db.ExecuteScalar("SELECT TOP 1 Book");

Assembly: Eloquera.Client (Module: Eloquera.Client) Version: 4.5.0.0 (4.5.0.0)