Ver Mensaje Individual
  #5 (permalink)  
Antiguo 06/07/2007, 16:04
since97
 
Fecha de Ingreso: julio-2007
Mensajes: 1
Antigüedad: 16 años, 10 meses
Puntos: 0
Re: Trigger dando error

Que tal tio... sabes estuve leyendo un poco y a mi tambien me sale el error

"Can't update table 'usuario' in stored function/trigger because it is already used by statement which invoked this stored function/trigger."

Por favor ayudame.. como lo solucionaste.. xq estoy q me mato la cabeza y me esta sacando de mis casillas por favor haber si me das una mano..

Gracias

PD: Adjunto el TRIGGER por si acaso..

-----------------------------

DELIMITER $$;

DROP TRIGGER `inicte`.`mods`$$

create trigger `mods` AFTER UPDATE on `modulo`
for each row BEGIN
UPDATE modulo
SET modulo.fecCre=Now(), modulo.usuCre=CURRENT_USER();
END;
$$modulo
DELIMITER ;$$