jeongwon
[Error] ORA-02292: integrity constraint (~.SYS_C007946) violated - child record found 본문
Error log
[Error] ORA-02292: integrity constraint (~.SYS_C007946) violated - child record found
jeongwon_ 2022. 10. 28. 02:37오류:
ORA-02292: integrity constraint (~.SYS_C007946) violated - child record found
상황: delete from TB; 실행 중 오류
해결:
select constraint_name, table_name, r_constraint_name from user_constraints where constraint_name = 'SYS_C007946'; |
어떤 테이블과 연결되어 있는지 확인 => 자식 테이블 레코드 삭제 => 해당 테이블 레코드 삭제 처리.
참고:
자식 테이블의 외래키 제약조건에 ON DELETE CASCADE를 추가하면, 참조하는 부모 테이블의 기본키가 삭제되었을 때 함께 삭제되도록 할 수 있다.
'Error log' 카테고리의 다른 글
[참고] 영문 자간이 넓어졌을 때 (0) | 2022.11.02 |
---|---|
[Error] mybatis - There is no getter for property named 'table' in 'class java.lang.String' (0) | 2022.11.02 |
[Error] String <-> Date (0) | 2022.10.27 |
[Error] java.sql.SQLException: 부적합한 열 유형: 1111 (0) | 2022.10.26 |
[Error] 400 – 잘못된 요청 (0) | 2022.10.24 |