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

后端 未结 30 2641
误落风尘
误落风尘 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:27

    I've corrected the problem by making the variable accept null

    ALTER TABLE `ajout_norme` 
    CHANGE `type_norme_code` `type_norme_code` VARCHAR( 2 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL
    

提交回复
热议问题