我正在使用Magento-Shopsystem 1.9.0.1。事务失败,出现以下错误消息:
SQLSTATE23000:完整性约束冲突: 1452无法添加或更新子行:外键约束失败(deko_production。sales_flat_order_payment,constraint FK_SALES_FLAT_ORDER_PAYMENT_PARENT_ID_SALES_FLAT_ORDER_ENTITY_ID外键(parent_id)引用sales_flat_order (entity_id) )
有人知道那是什么意思吗?
提前谢谢你
哈坎
发布于 2017-05-22 19:36:25
表deko_production中有一个外键引用。这指定sales_flat_order.entity_id中必须已经存在parent_id的任何值。
您试图使用deko_production(parent_id)的值不是有效值的insert或update。因此,你得到了一个错误。
https://stackoverflow.com/questions/44111828
复制相似问题