웹개발/Database
[MariaDB] Unsafe query: 'Delete' statement without 'where' clears all data in the table
kmhan
2022. 11. 15. 20:07
728x90
반응형
원하는 기능 : 테이블 데이터 전체 삭제
에러메시지 : Unsafe query: 'Delete' statement without 'where' clears all data in the table
원인 : 전체 삭제 안되게 처리
해결 코드 :
truncate 테이블명;
728x90
반응형