Result of TUniQuery.ExecSQL
Posted: Thu 20 Aug 2020 13:06
Hi, in topic below you wrote that it is possible to get result from ExecSQL.(SQLite)
https://www.devart.com/unidac/docs/deva ... ect[]).htm
It is not clear how, if I shall use ExecSQL function result or UniConnection Result. Anyway both below trials fail:
First one returns NULL
Second one returns error "No Result parameter".
Would you clarify the topic and fill missing data in a help?
https://www.devart.com/unidac/docs/deva ... ect[]).htm
It is not clear how, if I shall use ExecSQL function result or UniConnection Result. Anyway both below trials fail:
Code: Select all
// Solution 1:
DstID := uc.ExecSQL('SELECT 1');
// Soultion 2:
uc.ExecSQL('SELECT 1');
DstID := uc.ParamByName('Result').AsInteger;
Second one returns error "No Result parameter".
Would you clarify the topic and fill missing data in a help?