codice:
create table Articoli(
codice char(25) NOT NULL,
taglia int NOT NULL,
tipo char(20),
percentualeIva int,
prezzoSenzaIva float,
costoAcquisto float,
quantita int,
colore char(15),
descrizione char(25),
codiceFornitore char(25),
PRIMARY KEY(codice,taglia),
FOREIGN KEY(codiceFornitore)REFERENCES Fornitori(partitaIva));
create table Carrello(
codiceArticolo char(25) NOT NULL,
taglia int NOT NULL,
tipo char(20),
percentualeIva int,
prezzoSenzaIva float,
prezzoIvato float,
quantita int,
colore char(15),
descrizione char(25),
codiceFornitore char(25),
PRIMARY KEY(codiceArticolo,taglia),
FOREIGN KEY(codiceArticolo)REFERENCES Articoli(codice),
FOREIGN KEY(taglia)REFERENCES Articoli(taglia));
Come mai mi da questo errore?
ERROR 1005 (HY000): Can't create table '.\dbname\carrello.frm' (errno: 150)
se tolgo l'ultmo FOREIGN KEY mi crea la tabella , ma poi...
help