Answer Posted / shivaindu
Differentiate between TRUNCATE and DELETE:
-----------------------------------------
TRUNCATE deletes much faster than DELETE
TRUNCATE HAS NO CONDITION CLAUSE. WHERE AS DELETE HAS CONDITION.
Delete
~~~~~~
1> Executes triggers
2> DML statement
3> Roll back possible
4> Flash query can get the data
5> cannot free the table free space
Truncate
~~~~~~~~
1>No trigger Execution
2>DDL statement
3>No roll back possible
4>can’t get data from flash queries
5>Option to free table space
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what are the difference between clustered and a non-clustered index? : Sql dba
What is the advantage of index in sql?
What is an inconsistent dependency?
Do we need to rebuild index after truncate?
What are the different types of functions in sql?
What is the current version of sql?
What are the features of pl sql?
can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba
what is 'mysqlimport'? : Sql dba
What is a call statement? Explain with an example.
What is sharding in sql?
Is t sql a programming language?
Are subqueries better than joins?
what are date and time intervals? : Sql dba
What are variables in pl sql?