외래키 데이터 삭제 오류
![[MYSQL] SQL Error [1701] [42000]: Cannot truncate a table referenced in a foreign key constraint](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F3VUyo%2FbtrS6iAdmOk%2FfbmnQYzxM6Zd0hx4jNr27K%2Fimg.png)
[MYSQL] SQL Error [1701] [42000]: Cannot truncate a table referenced in a foreign key constraint
TRUNCATE TABLE 명령어로 데이터 삭제 하려는데 아래 처럼 오류가 난다.. [에러내용] " SQL Error [1701] [42000]: Cannot truncate a table referenced in a foreign key constraint (`DB명`.`참조하는테이블`, CONSTRAINT `외래키명` FOREIGN KEY (`외래키`) REFERENCES `DB명`.`테이블명` (`컬럼`)) " [발생원인] 외래키 제약조건에 따른 에러로 FOREIGN KEY (외래키) 로 참조되고 있는 TABLE의 데이터를 삭제하고자 할때 나는 에러이다 [해결] 데이터 삭제 전에 외래키(Foreign Key) 를 무시하도록 설정 하여 해결 1. 외래키(Foreign Key) 체크 하지 않는다는 설정..