외래키 데이터 삭제 오류

    [MYSQL] SQL Error [1701] [42000]: Cannot truncate a table referenced in a foreign key constraint

    [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) 체크 하지 않는다는 설정..