37 lines
756 B
Plaintext
Executable File
37 lines
756 B
Plaintext
Executable File
CREATE TABLE AEROPORT
|
|
(codeAeroport VARCHAR(15) PRIMARY KEY,
|
|
nom Varchar(40),
|
|
ville Varchar(40),
|
|
pays Varchar(40)
|
|
);
|
|
|
|
Create table VOL
|
|
(numVol number primary key,
|
|
compagnie varchar(40),
|
|
periodeVol varchar(30)
|
|
);
|
|
|
|
create table TYPE_AVION
|
|
(nomType varchar(40) primary key,
|
|
maxSieges number,
|
|
nomConstructeur varchar(40)
|
|
);
|
|
|
|
create table AVION
|
|
(idAvion number primary key,
|
|
totalSieges number,
|
|
nomTypeAvion varchar(40) references TYPE_AVION
|
|
);
|
|
|
|
create table PEUT_ATTERRIR
|
|
(nomTypeAvion varchar(40) references TYPE_AVION,
|
|
codeAeroprot varchar(15) references AEROPORT,
|
|
Primary key(nomTypeAvion, codeAeroprot)
|
|
);
|
|
|
|
create table PERSONEL
|
|
(idPersonne number primary key,
|
|
nom varchar(40),
|
|
prenom varchar(40),
|
|
fonction varchar(40)
|
|
); |