What is the difference between DELETE and TRUNCATE?

Answer Posted / p.rajasekar

Delete:
1.It is DML staement.
2.We can rollback the Data
3.We can apply Where condition.
4.Database triggers will fire on DELETE.
5.High water mark Model is not applied
Truncate:
1.It is a DDL statement
2.We cannot rollback
3.We can not apply Where condition
4.Database trigger will not fire
5.High water mark Model is applied

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rename in sql?

726


What is a trigger in sql?

884


What are the dml statements?

852


What are joins in sql?

719


Describe different types of general function used in sql?

727






What is the difference between local variables and global variables?

798


What is use of trigger?

676


Table A Table B 1 1 2 1 3 1. Union & union all --> A Union B , A Union all B 2. Minus , Intersect --> A minus B , B Minus A , A Intersect B 3. Joins A join B , A Left Join B A Right Join B , A full Join B 4. %Type - Uses & Benifit 5. Truncate & Delete 6. Pragma Autonomus Transaction 7. how to Perform DDL from function or procedure 8. Can we have DML inside Function 9. Rank & Dense Rank diffrence 10. Water Mark in Oracle 11. Index , Can we have index in all column of table if no then why ?

743


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

767


Can we call procedure in select statement?

732


How to call shell script from pl sql procedure?

845


What is character functions?

743


What is procedure explain with program?

719


how to load data files into tables with 'mysqlimport'? : Sql dba

742


Is there a way to automate sql execution from the command-line, batch job or shell script?

746