|
AnyDAC
|
Executes a SQL command without parameters and fetches a single value.
|
Parameters |
Description |
|
const ASQL: String |
A SQL command to execute. |
The value of first column in first row of first result set.
The ExecSQLScalar method executes a SQL command without parameters. The method returns a value of first column in first row of first result set. All other cursors will be discarded.
function ExecSQLScalar(const ASQL: String): Variant; overload;
var sVersion: String; ... sVersion := ADConnection1.ExecSQLScalar('select @@version');
|
What do you think about this topic? Send feedback!
|