【发布时间】:2010-05-27 20:59:56
【问题描述】:
查询:
INSERT INTO `job_listing_has_employer_details` (`job_listing_id`, `employer_details_id`)
VALUES (6, '5')
错误:
无法添加或更新子行:外键约束失败(
mydb.job_listing_has_employer_details, CONSTRAINTjob_listing_has_employer_details_ibfk_2FOREIGN KEY (employer_details_id) REFERENCESemployer_details(id))
这是什么意思?我要插入到表中的两个 ID 存在。
【问题讨论】: