MyVideos48
Trigger "delete_person"
Previous topic Chapter index Next topic

System:
Table: actors
Events: DELETE
Type: After
Enabled:
When expression: (no value)
Body:

Definition:
CREATE TRIGGER delete_person
  AFTER DELETE
  ON actors
BEGIN
        DELETE FROM art WHERE media_id=old.idActor AND media_type IN ('actor','artist','writer','director');
        END;


Previous topic Chapter index Next topic
Generated by ""SQLite Maestro Professional"" at 08.07.2021 23:49:20