Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/03/2009, 07:02
eurodoblon
 
Fecha de Ingreso: enero-2008
Mensajes: 303
Antigüedad: 16 años, 3 meses
Puntos: 0
problema con tiggert

Buenos dias:

Sabeís por que me da este error: "Column count doesn't match value count at row 1"
al disparase el siguiente TIGGERT

Código:
CREATE TRIGGER duplicados AFTER DELETE ON correos FOR EACH ROW INSERT INTO DUPLICADOS( email ) 
VALUES (
OLD.email, CURRENT_USER( ) , NOW( ) 
);
Parece ser que es por que que las estructuaras de la tablas son diferentes, pero las tengo iguales:

1.-
Código:
CREATE TABLE `duplicados` (
  `id` int(11) NOT NULL,
  `email` varchar(50) character set utf8 collate utf8_spanish2_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
;

2.-

Código:
CREATE TABLE `correos` (
  `id` int(11) NOT NULL auto_increment,
  `email` varchar(50) character set utf8 collate utf8_spanish2_ci NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11731

Me estpy volviendo loco y no doy con ello. Necesito ayuda.
Gracias y un saludo