What is difference between TRUNCATE & DELETE?

Answer Posted / rampratap singh

Truncate is DDL so it does not create rollback segments,

where as DELETE is DML and creates rollback segments.

Truncate removes/reset the high watermark.
Delete does not do that.

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Show the two pl/sql cursor exceptions.

603


What is the use of count (*) in sql?

532


What is database migration?

506


Explain select statements in sql?

575


How to combine two stored procedures in sql?

580






explain the options of myisamchk to improve the performance of a table. : Sql dba

533


Can a primary key be a foreign key?

564


explain the delete statements in sql

569


Explain about various levels of constraint.

513


what is recursive stored procedure? : Sql dba

520


If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????

3536


What are the string functions in sql?

520


Which is better trigger or stored procedure?

492


Are stored procedures faster than dynamic sql?

518


What is a field in a database?

555