1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
|
Create Table Contactsuivant
(Num_Ct long primary key ,
Nature Varchar(20));
Create Table Candidat
(Num_Can Long primary key,
Numlycee long ,
Num_con Long ,
numev Long,
numbac Long,
Constraint ref_Lycee Foreign Key (Numlycee) references Lycee(NumLyc) ,
Constraint ref_Connaissance Foreign Key (Num_Con) references Connaissance(Num_Con),
Constraint ref_evenement Foreign Key (Numev) references evenement(Numev),
Constraint ref_bac Foreign Key (Numbac) references bac(Numbac));
Create Table EtudiantContact
(Num_Can Long ,
Num_Con Long ,
Constraint Clé_EtudiantContact Primary Key (Num_Can,Num_Con),
Constraint ref_Candidat Foreign Key (Num_Can) references Candidat(Num_can),
Constraint ref_Contactsuivant Foreign Key (Num_con) references Contactsuivant(Num_ct));
Create Table Lycee
(Numlyc Long primary key ,
nom varchar(20) ,
rue varchar(50) ,
ville varchar(20) ,
cp NUMBER(5) ,
tel NUMBER(10) ,
email varchar(50) ,
effectif long ,
type long );
Create table Connaissance
(num_con Long primary key ,
nature varchar(20) );
Create table Evenement
(
numev long primary key ,
libelle varchar(20) );
Create table BAC
(Numbac long primary key,
Série VarChar(20) );
Create table etablissement_superieur
(numeta long primary key ,
nom varchar(20) ,
rue varchar(20) ,
ville varchar(20) ,
CP long ,
tel long ,
email varchar(20));
Create table reorientation
(Num_can long primary key ,
Numeta long ,
Constraint ref_candidat (num_can) references Candidat(num_can),
Constraint ref_Etablissement_superieur (numeta) references Etablissement_superieur(numeta)); |
Partager