Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- event loop
- debezium
- constraint fails
- 참조무결성
- programmers
- Pagination Optimization
- git reflog
- 제약 조건
- Late row lookup
- git rebase -i
- kafka connect
- Invalid character found in method name
- Cannot add or update a child row: a foreign key constraint fails
- code --no-sandbox
- foreign key constraint fails
- jdbc connector
- 23000
- reflog
- 문자열 검증
- kafka-connect
- 1450
- Git
- 페이지네이션
- Cannot delete or update a parent row: a foreign key constraint fails
- Query String
- 페이지네이션 최적화
- Path Variable
- 1452
- kafkaconnect
- API 설계
Archives
- Today
- Total
목록1452 (1)
Kawaii_Jordy
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/mZbfk/btq6QOF6IWq/pIISscrtKUOQCH0jcKRKY0/img.png)
Problem (1452): Cannot add or update a child row: a foreign key constraint fails Foreign key에 값을 삽입할 때, 참조하는 테이블의 Primary key에 해당하는 값만 삽입해야 하지만 이를 어길 시 위의 에러가 발생한다. Solution 참조하는 테이블의 Primary key에 값을 넣어준 뒤, 참조 받는 테이블의 Foreign key의 값을 참조하는 테이블의 Primary key의 값으로 넣어준다.
취준/DB
2021. 5. 8. 13:31