Compare and contrast TRUNCATE and DELETE for a table.

Answer Posted / ramesh

Truncate is to delete the entire data of any table .does not
have criteria deletion
where as Delete can do that job
However Deleted blocks still persists and have to be
shrinked .otherwisem You still feel the Deleted Recs while
you Query Against

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when does an alert gets signaled?

574


What are statistics, under what circumstances they go out of date, how do you update them?

1799


what are the performance views in an oracle rac environment?

551


What is the default port no on which sql server listens? : sql server DBA

552


Claims and Drains are the locks used to control the concurrency between SQL processes and utilities. Referring to the above statement, what is the maximum number of concurrent Claimers for a Subsystem? Choice 1 32 Choice 2 64 Choice 3 128 Choice 4 256 Choice 5 No limit

1828






what is the use of ocr?

588


Why would you use sql agent? : sql server DBA

570


Query processing is slow(eg select query)how will u solve that

6491


what is the role of dip user in our database?

2041


What is the difference between clustered and non-clustered index? : sql server DBA

536


A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables?

1992


How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?

1579


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

3931


What is the cache hit ratio, what impact does it have on performance of an Oracle database and what is involved in tuning it?

1967


What are the different sql server versions you have worked on? : sql server DBA

537