Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Compare and contrast TRUNCATE and DELETE for a table.

Answers were Sorted based on User's Feedback



Compare and contrast TRUNCATE and DELETE for a table...

Answer / santosh

Basically truncate is a DDL and Delete is DML. You can use
delete to remove rows depending on certain criteria and it
generated redo logs and can be rolled back before you
commit the transaction, Where as the truncate is used to
remove all the data in the table. Once you execute this
command u can not rollback this transaction.and commit is
not required for the truncate statement

Is This Answer Correct ?    10 Yes 0 No

Compare and contrast TRUNCATE and DELETE for a table...

Answer / taral desai

truncate is faster then delete... truncate don't generate
rollback. truncated data can't be recovered

Is This Answer Correct ?    3 Yes 0 No

Compare and contrast TRUNCATE and DELETE for a table...

Answer / 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

Compare and contrast TRUNCATE and DELETE for a table...

Answer / 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

Compare and contrast TRUNCATE and DELETE for a table...

Answer / 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

Compare and contrast TRUNCATE and DELETE for a table...

Answer / kishore

truncate removes all the rows from a table
it can't be rollback
delete removes all /specific rows from a table
it can be rollback
drop removes whole table

Is This Answer Correct ?    1 Yes 0 No

Compare and contrast TRUNCATE and DELETE for a table...

Answer / monal

IN MSSQLSERVER TRUNCATE RESETS IDENTITY VALUE OF COLUMN
WHILE DELETE DOESN'T RESETS IDENTITY VALUE OF COLUMN

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More DB Administration Interview Questions

deleted of control file how will u recover control file?

4 Answers   CTS,


what is logical system in sap basis

0 Answers  


Compare and contrast TRUNCATE and DELETE for a table.

7 Answers  


CTS int questions: 1.Temperory tablespace corrupted,how to resolve?If you need to recover? 2.In tablespace begin backup mode,Its possible to add the datafile? 3.How to partition the table using Hash partioning,what happened internally? 4.During rman backup,some files are missing Rman will continue the backup? 5.what are the errors occurs frequently? 6.which join method is best?why? 7.how to solve deadlock errors? please reply anyone.... regards siva

2 Answers   CTS,


How would you extract DDL of a table without using a GUI tool?

0 Answers  


An automatic job running via DBMS_JOB has failed. Knowing only that "it's failed", how do you approach troubleshooting this issue?

1 Answers  


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

0 Answers  


how can you process messages in order asynchronously?

0 Answers   Oracle,


Which dictionary tables and/or views would you look at to diagnose a locking issue?

2 Answers  


how do we explain a project in cognos in an interview? please help me. Also how do we perform testing in cognos after creating reports?

0 Answers   HSBC,


What would you use to improve performance on an insert statement that places millions of rows into that table?

2 Answers   TCS,


why do we give pctfree and pctused in create table statement?

1 Answers   CTS,


Categories