J'ai une application gratuite en utilisant pascals Firebird. Comment puis-je récupérer la variable de sortie de cette procédure Firebird stockée:Comment récupérer la variable de sortie de Firebird
input parameters: ID (integer)
output parameters: G (integer)
begin
if(select town.count from town where town.id=:id) then
G = 100
else
G = 200;
suspend;
end
in designer->SQL
EXECUTE PROCEDURE ID_DEV :ID RETURNING_VALUES :G
Dans le code:
SQLQueryProc.Prepare; //here i got an error
SQLQueryProc.ParamByName('ID').Value:=res;
SQLQueryProc.ExecSQL();
SQLTransaction.CommitRetaining;
ID:=SQLQueryProc.FieldByName('G').AsInteger;
Quand je lance mon application, je reçois une erreur:
Token unknown line (where :G located)
J'ai essayé beaucoup de combinaisons. Quelle est la raison?