0

mysql版本:5.7.x

询问:

INSERT INTO `products_manufacturer`
   SET    `website_id` = 27,
          `name` = 'YAZAKI CORP',
          `url` = 'http://www.speclocator.com/mfg_category.php?manufacturename=YAZAKI+CORP',
          `enabled` = true,
          `rectified_manufacturer_id` = NULL,
          `logo` = NULL;

错误代码: 1364。字段 'facebook' 没有默认值 0.000 秒

附为屏幕截图的表结构。DESC

4

1 回答 1

0

插入数据后尝试以下查询

ALTER TABLE products_manufacturer MODIFY COLUMN facebook VARCHAR(255) NULL DEFAULT '0.000';
于 2016-08-29T11:27:57.477 回答