Operation failed: There was an error while applying the SQL script to the database.
Executing:
INSERT INTO 'bdaeropuerto'.'tb_hangars'
('Clave', 'Aeropuerto', 'Capacidad', 'Tipo',
'Aerolinea', 'Estatus', 'Aeropuertos_Id', 'Aviones_Id', 'Empleados_Id')
VALUES ('fdbgdf', 'dbdvd', '12', 'bkh', 'kbkb', 'kbkb', '1', '1', '2');
ERROR 1136: 1136: Column count does not match value count at row 1
SQL Statement:
INSERT INTO 'bdaeropuerto'.'tb_hangars'
('Clave', 'Aeropuerto', 'Capacidad', 'Tipo',
'Aerolinea', 'Estatus', 'Aeropuertos_Id', 'Aviones_Id', 'Empleados_Id')
VALUES ('fdbgdf', 'dbdvd', '12', 'bkh', 'kbkb', 'kbkb', '1', '1', '2')
That's the Trigger
DELIMITER @
CREATE TRIGGER triggerInsertar before INSERT ON tb_hangars
FOR EACH ROW
BEGIN
INSERT INTO bitacora_hangares
values(
new.Clave, new.Capacidad, new.Tipo,
new.Aerolinea, new.Estatus,
new.Aeropuertos_Id, new.Aviones_Id,
new.Empleados_Id, curdate(), 'Agregado'
);
END;
@ DELIMITER ;