Skip to main content
3 de 3
Formato agregado
padaleiana
  • 3.3k
  • 13
  • 19
  • 27
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 ;

Recuerda poner el BEFORE Y el OLD.