Pouvez vous m'aider s'il vous plait j'ai créé ce script avec context mais quand je l'exécute, dans les commandes SQL il me marque ;"erreur de création de la table chercheure.frm" par exemple. Par contre quand je ne précise pas le trype InnoDB le script fonctionne. C'est dû à quoi? Merci de votre aide.
create table chercheur(
codeCH smallint unsigned,
nomCH varchar (50),
codeEQ smallint unsigned,
constraint pk_chercheur primary key (codeCH),
constraint fk_chercheur foreign key (codeEQ) references equipe (codeEQ))type=InnoDB;
create table laboratoire (
codeLABO smallint unsigned,
type enum ('UNIV','CNRS','INRIA'),
nomLABO varchar (50),
URL varchar (200),
codeDIR smallint unsigned,
constraint pk_laboratoire primary key(codeLABO),
constraint fk_laboratoire foreign key (codeDIR) references chercheur(codeCH))type=InnoDB;
create table equipe(
codeEQ smallint unsigned,
nomEQ varchar(50),
codeRESP smallint unsigned,
codeLABO smallint unsigned,
constraint pk_equipe primary key(codeEQ),
constraint fk_equipe foreign key (codeRESP) references chercheur(codeCH),
constraint fk1_equipe foreign key (codeLABO) references laboratoire(codeLABO))type=InnoDB;
Partager