use apractica;
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 ;
DELIMITERRecuerda poner el //
CREATE TRIGGER ELIMINADO before DELETE ON datos_civiles
for each row
begin
DELETE FROM datos_sensibles WHERE cedula=old.cedula;
endBEFORE
Y el //
DELIMITER ;OLD
.