Want to create interactive content? It’s easy in Genially!

Get started free

TRIGGERS (DÉCLENCHEURS)

Fabian CISNEROS-BRID

Created on January 5, 2023

Start designing with a free template

Discover more than 1500 professional designs like these:

Modern Zen Presentation

Newspaper Presentation

Audio tutorial

Pechakucha Presentation

Desktop Workspace

Decades Presentation

Psychology Presentation

Transcript

Triggers (déclencheurs)

(Créer des actions automatisées dans une base de données) D4 - Gestion base de données BTS SIO option SLAM

Commencer >

Situation professionnelle

Reponse

(T) : TOTALITÉ

(I) : INCLUSION

(-) : EXCLUSION

(=) : EGALITE

(+) : PARTITION

Situation professionnelle

La contrainte de totalité (T) exprime qu'un employé doit obligatoirement avoir l'autorisation aux options d'au moins l'un des services (commercial, déménageur). Un employé ne peut pas apparaitre dans la base de données sans avoir des options associées, mais il peut être associés aux deux types (commercial, déménageur) d'options à la fois.

Comment le faire de manière automatique dans la BD

TRIGGERS

(DÉCLENCHERS)

Situation professionnelle

Quoi faire ?

Mysql ?

Mysql ?

CREATE TRIGGER

AFTER

INSERT

ON

employe

after_insert_employe();

FROM EACH ROW EXECUTE PROCEDURE

Merci!