Can you tell me the difference between DELETE & TRUNCATE
commands?
Answer Posted / pankaj kumar upadhyay
1) When we use delete command that time we will use
conditon or without conditon but when we use truncate
command so that time we will not use condition.
2)delete can roll back but truncate is not rollback.
3)Truncate is faster compare delete command.
4)delete is DML command while Truncate is DDL.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can we deploy SSRS reports on our personal website?
What type of locking occurs during the snapshot generation? : sql server replication
List out the differences between global and local temp tables in sql server?
What is the difference between executequery () and executeupdate ()?
Difference between aggregate functions of sql?
can we have a nested transaction? : Sql server database administration
What is the web service used for reporting services?
Can I use sql azure as a backup with log shipping or database mirroring?
What are the advantages of using a stored procedure?
How to write a query with a left outer join in ms sql server?
What is temporary table in sql server? Why we use temp table?
What is indexing a document?
Can we update data in a view?
What is the contrast between sql and mysql?
How do I start sql server 2016?