IAPI::SQLite_execAggregateFunction

property SQLite_execAggregateFunction.

Executes SQL query with SELECT keyword which is combined with aggregate function.

 

HRESULT SQLite_execAggregateFunction(
  long hSQlite3DB,
  BSTR SQLAggregate,
  long *pVal
);

Parameters

hSQlite3DB

[in] .   Handle of SQLite database

SQLAggregate

[in] .   Query string containing aggregate function like count(), max()…

         (e.g select count(*) from t,  select max(sales) from t )

pVal

[out, retval] The returned value is related to the aggregate function in use.

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI