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.
- query (String)
- Query to execute
The object corresponding to the requested query.
If the query returns multiple objects, only the first one will be returned. If the query results in the empty set, null is returned.
Assembly: Eloquera.Client (Module: Eloquera.Client) Version: 188.8.131.52 (184.108.40.206)
Book book = (Book)db.ExecuteScalar("SELECT TOP 1 Book");