Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Conexión con bases de datos (https://www.clubdelphi.com/foros/forumdisplay.php?f=2)
-   -   Procedimiento Almacenado (https://www.clubdelphi.com/foros/showthread.php?t=42896)

rruffino 25-04-2007 17:15:17

Procedimiento Almacenado
 
Hola, estoy empezando a usar procedimientos almacenados en intebase 6.5. Quiero hacer esto y me tira error

CREATE PROCEDURE ACTUALIZA_MONTOS_FACTURA (
NUM_COMPROBANTE INTEGER,
INTERES DECIMAL (4, 2),
DIAS_2 INTEGER,
DIAS_3 INTEGER,
DIAS_4 INTEGER)
AS
BEGIN
/* Procedure body */
update comprobante
set
MONTO_SEGUNDO_VTO = MONTO_PRIMER_VTO + (MONTO_PRIMER_VTO * :INTERES * :DIAS_2);
MONTO_TERCER_VTO = MONTO_PRIMER_VTO + (MONTO_PRIMER_VTO * :INTERES * :DIAS_3);
MONTO_CUARTO_VTO = MONTO_PRIMER_VTO + (MONTO_PRIMER_VTO * :INTERES * :DIAS_4)
WHERE comprobante.id_comprobante = :num_comprobante;
exit;

Alguna sugerencia???
Muchas gracias:)

rruffino 25-04-2007 18:52:51

Respuesta propia
 
Muchachos, la respuesta la doy yo mismo. En vez de ; va , mil disculpas....
Ya solucioné el tema.
Gracias igualmente!!!:eek:


La franja horaria es GMT +2. Ahora son las 05:31:45.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi