Closed molnaredom closed 1 year ago
Trigger ötltetek:
CREATE OR REPLACE TRIGGER RENDELES_MEGSZUNES AFTER DELETE ON haplmelinda_oldal_rendeles FOR EACH ROW BEGIN DELETE FROM haplmelinda_oldal_kosar_kepek where haplmelinda_oldal_kosar_kepek.kosar_id = :OLD.kosar_id; END;
create or replace NONEDITIONABLE TRIGGER uj_kosar_TR AFTER INSERT ON haplmelinda_oldal_profile FOR EACH ROW BEGIN INSERT INTO haplmelinda_oldal_kosar VALUES (:NEW.id, :NEW.id); END;