1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
create table ORGANISMES(
NUMERO_ORG VARCHAR(5) NOT NULL,
NOM_ORG VARCHAR(20) NOT NULL,
ADRESSE_ORG VARCHAR(25) NOT NULL,
TELEPHONE_ORG VARCHAR(15) NOT NULL,
FAXE_ORG VARCHAR(15) NOT NULL,
MATIERES_PREMIERES VARCHAR(60) NOT NULL,
NOM_DIRIGEANT VARCHAR(30) NOT NULL,
SITUATION_GEOGRAPHIQUE VARCHAR(40) NOT NULL,
primary key (NUMERO_ORG)
);
create table PARTICIPANT(
NUMERO_PART VARCHAR(5) NOT NULL,
NOM VARCHAR(35) NOT NULL,
ADRESSE VARCHAR(25) NOT NULL,
TELEPHONE VARCHAR(15) NOT NULL,
FONCTION VARCHAR(30),
primary key (NUMERO_PART)
);
ALTER TABLE PARTICIPANT
ADD FOREIGN KEY (NUMERO_ORG) REFERENCES ORGANISMES; |