From 40db3a3ea8b53d4c5798c62d7eec00eec034a93e Mon Sep 17 00:00:00 2001 From: meliani Date: Tue, 4 Apr 2023 14:06:32 +0200 Subject: [PATCH] Supprimer 'DEV2.1/tp4.txt' --- DEV2.1/tp4.txt | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100755 DEV2.1/tp4.txt diff --git a/DEV2.1/tp4.txt b/DEV2.1/tp4.txt deleted file mode 100755 index 53441d6..0000000 --- a/DEV2.1/tp4.txt +++ /dev/null @@ -1,21 +0,0 @@ -insert into AEROPORT values('LFPG','CDG', 'PARIS', 'FRANCE'); -insert into AEROPORT values('LFPG','crocs', 'PARIS', 'FRANCE'); -insert into AEROPORT values('LFPO','ORLY', 'PARIS', 'FRANCE'); -insert into AEROPORT values('LFML','MRS', 'MARSEILLE', 'FRANCE'); -insert into AEROPORT values(null,'UI', 'MARSEILLE', 'FRANCE'); - -ORA-00001: violation de contrainte unique (MELIANI.SYS_C0083286) -ORA-01400: impossible d'insérer NULL dans ("MELIANI"."AEROPORT"."CODEAEROPORT") - -Exo2 -Create table ESCALE(numVol int, numEscale int, aeroportDepart varchar(15) references Aeroport, -aeroportArrivee varchar(15) references Aeroport, heureDepartPrevue int, minuteDepartPrevue int, heureArriveePrevue int, minuteArriveePrevue int, primary key(numVol, numEscale)); - -CREATE TABLE INSTANCE_ESCALE(numVol int, numEscale int, dateEscale date, nbreSieges int, idAvion int references Avion, dateDepartEffectue date, dateArriveeEffectue date,idEquipe int, - primary key(numVol, numEscale, dateEscale), foreign key(numVol, numEscale)references ESCALE); - -ALTER TABLE INSTANCE_ESCALE ADD FOREIGN KEY(idEquipe) REFERENCES Equipage; - -CREATE TABLE Equipage(numVol int, numEscale int, dateEscale date, idEquipe int primary key, idPilote int, idCoPilote int, idChefCabine int, foreign key(numVol,numEscale,dateEscale) references INSTANCE_ESCALE); - -CREATE TABLE HOTESSE_EQUIPAGE(idEquipe int references Equipage references Personnel, idPersonne int, primary key(idEquipe,idPersonne)); \ No newline at end of file