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

Ajax Insert Records in Database Tutorial in PHP

Arithmetic Operators Tutorial in PHP

JOIN Multiple Tables in PHP