I've tried to create a table,with 2 foreign key but when I tried to write it into mysql, get an error says "ERROR 1005 (HY000): Can't create table (errno: 150)" Is there anyone to help me ? Here is my tables:
create table store (
StoreName varchar(255),
Category varchar(20),
primary key(StoreName,Category));
create table shopps (
StoreName varchar(255),
Category varchar(20),
primary key(StoreName,Category),
foreign key(StoreName) References store);
foreign key(Category) References store);