Ver Mensaje Individual
  #17 (permalink)  
Antiguo 19/08/2009, 12:02
almirante
 
Fecha de Ingreso: abril-2009
Mensajes: 41
Antigüedad: 15 años
Puntos: 0
Respuesta: No me funciona los TRIGGERS en my sql phpmyadmin

hola de nuevo,
he creado un trigger asi:

delimiter &&
CREATE TRIGGER fecha AFTER INSERT ON Grupo
FOR each ROW
BEGIN
UPDATE Grupo SET new.Fecha_x =9;

END ;

y al insertar me da este error:

INSERT INTO `BBDD_prueba`.`Grupo` (
`Cod` ,
`Cod_Nivel` ,
`Fecha_x`
)
VALUES (
'3', '1', '5'
)

MySQL ha dicho: Documentación
#1442 - Can't update table 'Grupo' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.

GRACIAS POR VUESTRA AYUDA Y PACIENCIA pq me toy volviendo loko!