Compare and contrast TRUNCATE and DELETE for a table.

Answer Posted / amsu

Truncate is a DDL and delete is a DML command. Once you
truncate a table you cannot rollback where as you can
rollback from the delete command. When you truncate a
table it release the space and it resets the highwater
mark. Delete won't release the space and it won't resets
the highwater mark.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

currently iam working in mnc as a oracleappsdba,please send the EXPERIENCE RESUME those who r worked as a oracle apps dba

1857


What are the commands you'd issue to show the explain plan for "select * from dual"?

1721


Why would you use sql agent? : sql server DBA

568


What the different types of replication and why are they used? : sql server DBA

549


Assuming today is Monday, how would you use the DBMS_JOB package to schedule the execution of a given procedure owned by SCOTT to start Wednesday at 9AM and to run subsequently every other day at 2AM.

1692






what is the last version,the release date of that version and fix pack of ibm db2 udb?

1514


What are the different types of database compression introduced in sql server 2008? : sql server DBA

558


When setting replication, can you have distributor on sql server 2005, publisher on sql server 2008? : sql server DBA

553


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


Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracle's. What database recovery options are available? Database is in archive log mode.

1742


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

551


Where do you find the default index fill factor and how to change it? : sql server DBA

545


when we login sql editor using username and password then it says this error "could not resolve service name" then what can we do at client side.( here thing is tnsnames.ora file is ok till yesterday and worked well, but now it giving error.

1228


can u plz tell me what r the mandatory skills for getting job as a sql dba......plz send me all details thank you my id :k.mohann.mohan@gmail.com

1326


how can a session indicate its interest in receiving alerts?

559