Ver Mensaje Individual
  #1  
Antiguo 25-04-2007
rruffino rruffino is offline
Miembro
 
Registrado: dic 2004
Ubicación: Berrotaran, Cordoba - Argentina
Posts: 215
Reputación: 22
rruffino Va por buen camino
Wink 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 * IAS_2);
MONTO_TERCER_VTO = MONTO_PRIMER_VTO + (MONTO_PRIMER_VTO * :INTERES * IAS_3);
MONTO_CUARTO_VTO = MONTO_PRIMER_VTO + (MONTO_PRIMER_VTO * :INTERES * IAS_4)
WHERE comprobante.id_comprobante = :num_comprobante;
exit;

Alguna sugerencia???
Muchas gracias
Responder Con Cita