
19/08/2009, 12:02
|
| | Fecha de Ingreso: abril-2009
Mensajes: 41
Antigüedad: 15 años, 11 meses 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! |