use apractica;
DELIMITER //
CREATE TRIGGER ELIMINADO before DELETE ON datos_civiles
for each row
begin
DELETE FROM datos_sensibles WHERE cedula=old.cedula;
end //
DELIMITER ;
use apractica;
DELIMITER //
CREATE TRIGGER ELIMINADO before DELETE ON datos_civiles
for each row
begin
DELETE FROM datos_sensibles WHERE cedula=old.cedula;
end //
DELIMITER ;