Re: ayuda en la siguiente bbdd porfavor !
Andrei,
me parece que el error está en que estás tratando de hacer UNA SOLA LLAVE FORÁNEA, que se referencía a mas de una tabla, lo cuál hasta dónde yo sé, no es posible.
Tendrías que hacer crear UNA LLAVE FORÁNEA POR TABLA referenciada
CREATE TABLE...
...
foreign key (codC)
references conductores (codC)
on delete cascade on update cascade,
foreign key (codM)
references maquinas (codM)
on delete cascade on update cascade,
foreign key (codP)
references proyectos (codP)
on delete cascade on update cascade
...
o algo similar
Thanks in advance for your valuable help.
Acer LENOVO G450
CPU: Pentium(R) Dual-Core CPU T4400 @ 2.20GHz × 2
RAM: 4GB
Graphics: Intel GM45
OS: UBUNTU 18.04.4 LTS 64bits
GNOME 3.28.2
--
Best regards
Marco
Mexico City, Mexico
Subject
Views
Written By
Posted
Re: ayuda en la siguiente bbdd porfavor !
454
May 25, 2017 06:34PM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.