cannot add or update a child row: a foreign key constraint fails 해결방법


cannot add or update a child row: a foreign key constraint fails 해결방법

참조테이블에 없는 값을 추가해서 발생한 오류 외래키가 바라보는 ---> 참조테이블에 1 1 (가능) 1 2 (가능) 2 (가능) 3 (불가능) 참조테이블에 3이 없기 때문이다. 해결방법) 참조 테이블에 3이 들어가도록 추가해주거나 외래키가 있는 테이블에서 3을 제거해주거나...

cannot add or update a child row: a foreign key constraint fails 해결방법에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


#add #cannot #cannotaddorupdateachildrow #constraint #constraintfails #foreignkey #foreignkeyconstraintfails #참조테이블

원문링크 : cannot add or update a child row: a foreign key constraint fails 해결방법