MySQL: Can't create table (errno: 150)

后端 未结 30 3054
误落风尘
误落风尘 2020-11-22 06:48

I am trying to import a .sql file and its failing on creating tables.

Here\'s the query that fails:

CREATE TABLE `data` (
`id` int(10) unsigned NOT NUL         


        
30条回答
  •  故里飘歌
    2020-11-22 07:28

    The column of PARENT table to which you are referring to from child table has to be unique. If it is not, cause an error no 150.

提交回复
热议问题