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
Determine if oracle date is on a weekend?
Is sql between inclusive?
How do I turn a list into a table?
What does 0 mean in sql?
How to display Row Number with Records in Oracle SQL Plus?
What is the difference between Union and Union all. Which is faster.
How is data stored in sql?
Explain scalar functions in sql?
How many row comparison operators are used while working with a subquery?
What is difference between sql function and stored procedure?
Compare sql & pl/sql
What is the difference between union and union all command?
What does partition by mean in sql?
what does the t-sql command ident_incr does? : Transact sql
What is scope and visibility in PL/SQL?