DELETE comes under DML(Data Manipulation Language). DELETE can be used to delete a particular row by using WHERE clause. It is slower than TRUNCATE as it keeps logs. Rollback is possible when used ...
TRUNCATE comes under DDL(Data Definition Language). TRUNCATE removes only rows from the table but the structure of the table remains same. Data can not be roll backed if we use "TRUNCATE" command to ...
This explains how to perform DELETE, TRUNCATE, And DROP operations on a MySQL database … OSTechNix (Open Source, Technology, Nix*) regularly publishes the latest news, how-to articles, tutorials and ...
Reference: https://dev.mysql.com/doc/refman/8.0/en/truncate-table.html OPTIMIZE TABLE doesn't even seem optional:: https://dev.mysql.com/doc/refman/8.0/en/optimize ...