Skip to main content
Formato agregado
Origen Enlace
padaleiana
  • 3.3k
  • 13
  • 19
  • 27

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.

Recuerda poner el BEFORE Y el OLD.

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.

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.

se añadieron 10 caracteres en el cuerpo
Origen Enlace

use apractica; DELIMITER

DELIMITER // CREATE

CREATE TRIGGER ELIMINADO before DELETE ON datos_civiles for

for each row begin DELETE FROM datos_sensibles WHERE cedula=old.cedula; end

begin

DELETE FROM datos_sensibles WHERE cedula=old.cedula;

end // DELIMITER

DELIMITER ;

recuerdaRecuerda poner el BEFORE Y el OLD.

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.

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.

Origen Enlace

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.