向mysql插入数据时错误,Duplicate entry '0' for key 1

麦兜的春天 麦兜的春天 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
向mysql插入数据时错误,Duplicate entry '0' for key 1 ,本来字段good_id是自增类型,取消goods_id自增后才出现的


MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => INSERT INTO `tour`.`gd_goods`(goods_id, cat_id, goods_sn, goods_name, goods_name_style, click_count, brand_id, provider_name, goods_number, goods_weight, market_price, shop_price, promote_price, promote_start_date, promote_end_date, warn_number, keywords, goods_brief, goods_desc, goods_thumb, goods_img, original_img, is_real, extension_code, is_on_sale, is_alone_sale, is_shipping, integral, add_time, sort_order, is_delete, is_best, is_new, is_hot, is_promote, bonus_type_id, last_update, goods_type, seller_note, give_integral, rank_integral, suppliers_id, is_check)VALUES ('', '0', '', '深圳最新COCO PARK大型購物中心一天團', '', '0', '', '0', '1', '', '0', '79', '89', '', '2012/10/21 0:00:00', '', '', '', '', '', '', '', '1', '2905', '0', '0', '0', '', '', '', '', '0', '0', '0', '0', '', '', '0', '0', '', '', '', '') ) [2] => Array ( [error] => Duplicate entry '0' for key 1 ) [3] => Array ( [errno] => 1062 ) )
...全文
评论 6
收藏 已收藏
分享
返回顶部
麦兜的春天
PHP 20,393 成员 19,654 内容