santosh ganesh


{ City } bangalore
< Country > india
* Profession *
User No # 68402
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 10
Users Marked my Answers as Wrong # 0
Questions / { santosh ganesh }
Questions Answers Category Views Company eMail




Answers / { santosh ganesh }

Question { 13665 }

Compare and contrast TRUNCATE and DELETE for a table.


Answer

Basically truncate is a DDL and Delete is DML. You can use
delete to remove rows depending on certain criteria and it
generated redo logs and can be rolled back before you
commit the transaction, Where as the truncate is used to
remove all the data in the table. Once you execute this
command u can not rollback this transaction.and commit is
not required for the truncate statement

Is This Answer Correct ?    10 Yes 0 No