MySQL Error : #1005 - Can't create table (errno: 150)?

I believe you are getting this error because your primary key (questionpaper_id, question_id) includes a field which is being denoted as a foreign key (questionpaper_id). By nature, a foreign key has referential constraints, and you've specified that the foreign key 'questionpaper_id' in the third table 'question_in_paper' should get updated when the value for 'id' is updated in the 'questionpaper' table via the 'ON UPDATE CASCASE ON DELETE CASCADE' directive. Your primary key by nature cannot change, but because you've specified a foreign key as part of your primary key you are going against this primary key constraint and you're getting the error above.

Oh my mistake. Its due to a typo in the database engine name . It should be InnoDB instead of InndoDB.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions