A Admin • 832.10K Points Coach Q. What is the difference between DELETE and TRUNCATE in MySQL? (A) DELETE removes the table; TRUNCATE removes a single row (B) DELETE can be rolled back in a transaction if using InnoDB; TRUNCATE is DDL and may not be rollback-able and is faster (C) DELETE resets AUTO_INCREMENT; TRUNCATE preserves AUTO_INCREMENT (D) There is no difference Correct Answer - Option(B) Views: 27 Filed under category MySQL Hashtags: Share Manage Tags
Discusssion
Login to discuss.