studyplan
Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (SPRING4.SYS_C007243) violated - parent key not found // 무결성 제약 조건 본문
문제해결
Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-02291: integrity constraint (SPRING4.SYS_C007243) violated - parent key not found // 무결성 제약 조건
무한머니 2022. 7. 27. 15:28프로젝트 하는 도중
SQLIntegrityConstraintViolationException 이란 제약 조건을 만났다 .
이게 왜 생기냐면
pk 관계와 fk 의 관계에서 제약조건을 걸어서 생긴 이슈인데
그 제약 조건이
fk 가 있을때 pk 는 지우지 못한다는 조건이었다 !
그래서 oracle 로 가서 fk 를 지우고 테이블까지 날려버리고 다시
create table 로 다시 생성해서
원래 작업 하려했던 원래 게시글들을 다 삭제해서 해결했다 !
'문제해결' 카테고리의 다른 글
java.lang.IllegalStateException: Failed to load ApplicationContext 에러 해결 (0) | 2022.08.29 |
---|---|
ClassCastException 오류 해결 // 귀찮지만.. 할수있는 방법으로 하면 될듯 (0) | 2022.08.29 |
인텔리제이 한글깨짐 현상 -intelj , 콘솔 (0) | 2022.07.06 |
vs 한글 깨짐현상 해결하는방법 (0) | 2022.05.22 |
SyntaxError: invalid syntax 에러 (0) | 2022.03.14 |
Comments