私は SQLyog で作業し、int unsigned 型の accountpersonmapid という名前の salesquote sq テーブルに列を追加しました。この ID は、sq.accountid = apm.accountid である私の accountpersonmap apm にマップする必要があります
外部キーを設定しましたが、子行を追加または更新できません: 外部キー制約が失敗する ( clevva_live. #sql-7f8_737, CONSTRAINT salesquote_accountFOREIGN KEY ( accountid) REFERENCES accountpersonmap( accountid) ON DELETE NO ACTION ON UPDATE NO ACTION) エラーのため、明らかに保存できません
どうすればこれを乗り越えることができますか??
SELECT sq.accountid,apm.accountid FROM salesquote sq
LEFT JOIN accountpersonmap apm ON sq.accountid = apm.accountid
すべての sq.accountid に apm.accountid がありません
助けてください?