MySQL 에서 테이블을 초기화 할 때 사용하는 명령.
TRUNCATE TABLE table_name;
TRUNCATE
을 사용하면 DELETE
와 달리 autocommit
값도 초기화된다.
DELETE FROM `table_name`;
모든 데이터를 삭제
MySQL 테이블 삭제 지우기
Hi, my name is Richard. I’m a developer wants to make the world better with logic power. Mainly I use Linux, Nginx, MySQL, PHP and JavaScript . I want to share my knowledge with someone that it was also based from some great persons via LYNMP. 👨💻
Responses
Leave a response to @richard