NewToProgramming
Technical User
I have created a SQL statement to sum up one of my fields. My question is how do you pull that data out of the SQL into some kind of integer variable.
Ex:
Here is the SQL Statement:
Query.SQL.Add ('Select SUM (Field) from DatabaseName')
Now take that number and place it into:
var
I : Integer(or real,double, whatever you think is best)
begin
I := that SQL SUM answer
Ex:
Here is the SQL Statement:
Query.SQL.Add ('Select SUM (Field) from DatabaseName')
Now take that number and place it into:
var
I : Integer(or real,double, whatever you think is best)
begin
I := that SQL SUM answer