https://stackoverflow.com/questions/20512572/duplicate-key-on-write-or-update
Duplicate key on write or update?
Duplicate key on write or update First i will like to acknowledge the fact that, i have been to similar posts, but i couldn't find a way to solve this annoying issue which i face as of present.I am
stackoverflow.com
-> 해당 스키마에 똑같은 이름의 제약조건이 있는것.
ex )
t_word 테이블에 외래키 제약 명을 fk_t_note 로 해놓고
t_language 테이블에 외래키 제약 명을 또 fk_t_note 로 해놓았고,
t_word가 먼저 create 되었다면
t_language create 시에 해당 에러가 발생..
외래키 제약명은 fk_본테이블명_참조키테이블명_참조키 으로 바꿈
'IT > DB' 카테고리의 다른 글
MySql 의 last_insert_id() (0) | 2020.06.23 |
---|---|
[mysql] select delete 동시에 하기 (0) | 2018.10.18 |