我之前问了一个问题,帮助我在How to get the count of unique SKU per Date, in a table in mysql (Self learning question)下面创建了这个表 SKU, COUNT, DateSold11, 1, 1-Jan-08 13, 1, 3-Jan-08 13, 1, 5-J
每当我试图将一组输入同步到一个数据透视表时,我就会得到这个错误:SQLSTATE[23503]: Foreign key violation: 7 ERROR: insert or update on table "items_option_parcel"
violates foreign key constraint "items_option_id_fk_2971521" DETAIL: Key (items_option_id)=(0) is not present in table