What is the difference between DELETE and TRUNCATE?

Answer Posted / kalyana chakravarthy

Delete is associated with rollback segments like U can undo
it before committing and U have a choice of deleting a
specific row or rows where as

Truncate is not associated with rollback segments ie U cant
undo it and U cant delete a row/rows of ur choice

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I kill a query in postgresql?

554


How do you optimize a stored procedure in sql?

502


Explain the purpose of %type and %rowtype data types with the example?

554


What is difference between hql and sql?

505


What is difference between primary and secondary key?

519






How do you use join?

524


What is the least restrictive isolation level? : Transact sql

565


What is the current version of postgresql?

557


explain primary keys and auto increment fields in mysql : sql dba

530


What is the example of procedure?

525


what are date and time data types in mysql? : Sql dba

502


What is a database trigger?

612


What is the use of triggers?

544


Is big data nosql?

514


What is not null in sql?

578