I am having trouble creating a table with MySQL. I have narrowed the problem down to the enrolled table.
The error I get is: #1005 – Can’t create table ‘mcems.enrolled’ (errno: 150)
http://pastebin.com/9cUkgs8p
I am having trouble creating a table with MySQL. I have narrowed the problem
Share
CRNfield should be the same type in both tables,MCEMS.coursesandMCEMS.enrolled; otherwise, you cannot use it inFOREIGN KEY. You haveAlso, absolutely no need for INDEX
user_id(user_idASC)