gpt4 book ai didi

php - Opencart添加和复制错误

转载 作者:行者123 更新时间:2023-11-29 21:20:11 25 4
gpt4 key购买 nike

我尝试添加新产品或复制产品,但出现以下错误:

Notice: Error: Duplicate entry '109-1' for key 'PRIMARY'
Error No: 1062
INSERT INTO oc_product_description SET product_id = '109',
...
Error No: 1062
INSERT INTO oc_product_to_store SET product_id = '109', store_id = '0' in....

该问题似乎与 oc_product_description 有关。我尝试检查“自动增量”框并保存,但它给了我“查询错误 1063”:

Query error: #1063 Incorrect column specifier for column 'description'

最佳答案

只需从 oc_product_description 中的 Product_id 中删除属性 auto_increment 即可。 product_id 充当 oc_product_description 中的外键。一旦您从 product_id 中删除 auto_increment,它就会正常工作。

关于php - Opencart添加和复制错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35754971/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com