Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Test messages erreur des clefs primaires*/
- INSERT INTO employe2 VALUES (20, 'Jean', 30, 3);
- INSERT INTO projet2 VALUES (103, 'Venom', 5);
- INSERT INTO service2 VALUES (1, 'Communication', 17);
- INSERT INTO travail2 VALUES (20, 492, 20);
- /* Test messages erreur des clefs étrangères*/
- INSERT INTO employe2 VALUES (89, 'Antoine',35 ,6);
- INSERT INTO projet2 VALUES (118, 'Alpha',99);
- INSERT INTO travail2 VALUES (888, 492,20);
- INSERT INTO travail2 VALUES (20, 800, 40);
- alter table projet2 drop column nuproj;
- alter table employe2 drop column nuempl;
- alter table service2 drop column nuserv;
- /* Questions après les tableaux (manque 1 requête il me semble) */
- alter table employe2 add constraint U_employe UNIQUE(nuempl, affect);
- alter table employe2 add check(hebdo <= 35);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement