Error code 1005, SQL state HY000: Can't create table errno: 150

前端 未结 5 655
生来不讨喜
生来不讨喜 2021-01-01 06:40

I\'m trying to create a table but the script fails as soon as my netbeans errors the first table of DB.

How can this be solved?

CREATE TABLE filmy
(         


        
5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-01 07:22

    I usually get that error when I try to add a foreign key for a column that doesn't have an index on it; I notice that none of your associated columns do in the SQL shown.

提交回复
热议问题