DROP and TRUNCATE Table Tutorial in PHP

 DROP will remove Whole Table(including Structure of Table with data) and TRUNCATE will remove only Whole data of table but table structure will remain as it is. This is the major difference between DROP and TRUNCATE.


DROP and TRUNCATE Syntax :

DROP TABLE table_name;

TRUNCATE TABLE table_name;

Comments

Popular posts from this blog

GROUP BY Clause and HAVING Clause in PHP

Method Overriding in Traits in PHP

Mysqli database Connection and Display Table Data from Database