I have a table "MatchingUpRound
" as followings:
CREATE TABLE `matchingupround` (
`eventID` int unsigned NOT NULL,
`roundNo` tinyint unsigned NOT NULL,
PRIMARY KEY (`eventID`,`roundNo`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
Then I try to create another table "MatchingUp
":
CREATE TABLE `matchingup` (
`eventID` int unsigned NOT NULL,
`roundNo` tinyint unsigned NOT NULL,
`successfulMatching` boolean default false,
primary key (eventID),
Foreign key (roundNo) References MatchingUpRound (roundNo)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
But got this error Can't create table '.\matchingup.frm' (errno: 150)
. This is very strage?
am I doing something wrong?