gpt4 book ai didi

php - SQLSTATE[23000] : Integrity constraint violation: 1452 Cannot add or update a child row:a foreign key

转载 作者:行者123 更新时间:2023-11-29 01:54:40 24 4
gpt4 key购买 nike

我收到这个错误:

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (abc_db.sales_flat_order_item, CONSTRAINT sales_flat_order_item_ibfk_1 FOREIGN KEY (order_id) REFERENCES sales_flat_order (entity_id))

我正在使用 Magento 1.9.0.1。

最佳答案

如果 order_id 引用 sales_flat_order 表中现有的 entity_id,则无法添加 sales_flat_order_item 行

关于php - SQLSTATE[23000] : Integrity constraint violation: 1452 Cannot add or update a child row:a foreign key,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32517891/

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