Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 149 Bytes

truncate-foreign-key.md

File metadata and controls

7 lines (6 loc) · 149 Bytes

MySQL에서 FOREIGN KEY 설정된 table TRUNCATE 하기

SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE 테이블명;
SET FOREIGN_KEY_CHECKS = 1;