What is difference between TRUNCATE & DELETE?
Answer Posted / swapnareddy
Main Differences between Truncate and Delete:
Truncate:
1:Truncate removes all records but using this we cannot
remove a particular record.
2:Truncate is ddl command(data definiton language command)
3:Rollback cannot be done when we use this command.
4:Truncate cannot fire a trigger.
Delete:
1:delete can remove all records or a particular record.
2:delete is a dml command(data manipulation language command)
3:rollback is possible when we use this command.
4:delete can fire a trigger
| Is This Answer Correct ? | 19 Yes | 1 No |
Post New Answer View All Answers
What is the advantage of index in sql?
Define implicit and explicit cursors.
Is delete faster than truncate?
What are the set operators in sql?
What is an emotional trigger?
what is the syntax used for partition in tsql? : Transact sql
Is it possible to link two groups inside a cross products after the cross products group has been created?
State few characteristics of pl/sql?
What is t sql used for?
What are properties of the transaction?
Does a join table need a primary key?
What are instead of triggers?
What is the difference between microsoft access and sql?
What is the difference between distinct and unique in sql?
Is oracle and sql same?