Ver Mensaje Individual
  #11  
Antiguo 10-11-2011
Avatar de olbeup
olbeup olbeup is offline
Miembro
 
Registrado: jul 2005
Ubicación: Santiago de la Ribera (España)
Posts: 685
Reputación: 19
olbeup Va camino a la fama
Es lo mismo que una SQL normal y corriente,
eje.: Función ya definida como MySuma(X, Y)
Código SQL [-]
SELECT MySuma(5, 8)
El resultado seria 13.

Con ADO:
Código Delphi [-]
...
var
  xSuma: Integer;
begin
with ADOQry do
begin
  SQL.Add('SELECT MySuma(5,8) AS TOTALSUMA');
  Open;
  xSuma := FieldByName('TOTALSUMA').AsInteger;
end;

Espero que te sirva

Un saludo.
Responder Con Cita