0
I ran the commands in Mysql Workbench, but did not create the Foreign Key connection, which is wrong in querys?
create table Computador (
ID int NOT NULL primary key AUTO_INCREMENT,
Nome varchar(45) NOT NULL,
Marca varchar(45) NOT NULL,
Modelo varchar(45) NOT NULL,
Processador varchar(45) NOT NULL,
MemoriaRam smallint NOT NULL,
TamanhoTotal int NOT NULL
);
create table MaquinaVirtual (
ID int NOT NULL primary key AUTO_INCREMENT,
Nome varchar(70) NOT NULL,
EspacoEmUso int NOT NULL,
EspacoTotal int NOT NULL,
IdComputador int NOT NULL,
foreign key (IdComputador) references Computador (ID)
);
THANK YOU VERY MUCH!
– Felippe Jaqson Chemello