الجمعة، 27 سبتمبر 2019

Difference between Delete & Drop & Truncate command

Difference between Delete & Drop & Truncate command

Delete command : remove only the data from the table but keep the table structure .
Syntax :
delete from table_name;

Truncate command :remove only the data from the table but keep the table structure .
Syntax :
Truncate table table_name;

but the difference between delete and truncate command
The truncate  command is DDL statement so this command will auto commit .
but the delete command is DML statement so this command  can be rollback .

Drop command : remove data and the table structure .
Syntax:
drop table table_name;

***********************


***********************

إذا كنت تحتاج إلى عدد أكبر من الفقرات يتيح لك مولد النص العربى زيادة عدد الفقرات كما تريد. هذا النص هو مثال لنص يمكن أن يستبدل في نفس المساحة, ومن هنا وجب على المصمم أن يضع نصوصا مؤقتة على التصميم ليظهر للعميلً