Compare and contrast TRUNCATE and DELETE for a table.

Answer Posted / sridhar

truncate and delete are deltes all rows in the table but truncate is much faster than delete.
and if u delete row in the delte deletion of each gets logged in the transaction log.
truncate there is no way to log in transaction log

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1965


how can you schedule a job in database?

589


internal architecture

1747


. I have my backup RMAN script called "backup_rman.sh". I am on the target database. My catalog username/password is rman/rman. My catalog db is called rman. How would you run this shell script from the o/s such that it would run as a background process?

1972


If you are given access to a sql server, how do you find if the sql instance is a named instance or a default instance? : sql server DBA

550






What spfile/init.ora file parameter exists to force the CBO to make the execution path of a given statement use an index, even if the index scan may appear to be calculated as more costly?

2168


What the different components in replication and what is their use? : sql server DBA

531


What happens on checkpoint? : sql server DBA

555


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

535


Why would you use sql agent? : sql server DBA

567


which background process invoke at the time of upgradation tell me???

2217


what is the role of dip user in our database?

2039


what are the types of connection load-balancing?

557


Explain materialized views and how they are used.

1880


Define the SGA and: How you would configure SGA for a mid-sized OLTP environment? What is involved in tuning the SGA?

3298