What is Difference Between delete and Truncate?

Answer Posted / nandini sett

Both delete and Trunate are DML or Data Manupilating
Language.
Both statements --- Delete table_name and Truncate table
table_name --- deletes all rows.
Truncate Table works faster than delete.
Truncate table does not support where clause and truncate
doe not fire a trigger. When truncate is used the deleted
rows are not entered in transaction log.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is materialized view in sql?

459


Explain the update statement in sql

556


What is pl sql record in oracle?

563


What is a loop in sql?

562


Can we use having without group by in sql?

547






What is trigger in pl sql with examples?

519


what is top in tsql? : Transact sql

537


What does (+) mean in sql joins?

518


How do I order columns in sql?

523


What is mutating error?

502


How would you convert date into julian date format?

590


How do I count records in sql?

510


Does truncate table reset auto increment?

524


which operator is used in query for pattern matching? : Sql dba

541


What is the difference between inner join and natural join?

504