What is Difference Between delete and Truncate?

Answer Posted / kiran.

Delete(DML) : All records not possible to Delete at a time,
Where clause is allowed.
structure of the table is available.
Roll Back is possible.

Truncate(DDL): All records possible to Delete at a time,
Where clause is not allowed.
structure of the table is not available.
Roll Back is possible.
>Truncate Table<tablename>;

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are different sql data types?

509


Why is a primary key important?

541


What is a full join?

519


What is coalesce in sql?

555


what is a primary key? : Sql dba

552






What is difference between hql and sql?

501


What does inner join mean?

550


What does the argument [or replace] do?

574


what is recursive stored procedure? : Sql dba

524


Does sql support programming?

546


how to check myisam tables for errors? : Sql dba

595


Is sql a backend language?

616


What is 19 null in sql?

528


What are sql functions? Describe the different types of sql functions?

551


How do you get column names only for a table (sql server)?

663