Compare and contrast TRUNCATE and DELETE for a table.

Answer Posted / mkjmkumar

Delete :
1. It is a DML
2. Speed is Slow
3. We can Use Where Clause.
4. Check Constraints Before delete.

Truncate
1. It is a DDL.
2. Speed is Fast
3. We Cant Use Where Clause
4. Delete All Rows without check of constraints.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi iam kavya, i completed Oracle11i(finance module), i do not know how to face the interview questions please adivese me

1933


TILL WHAT LEVEL OF SECURITY BO SUPPORTS?

3126


Explain the use of table functions.

1999


What is db_recovery_file_dest in oracle? When do you need to set this value?

815


What is autocashrule set? : oracle accounts receivable

933






How I can load an image into image item on Forms. I want to know about built-ins and procedure. and also code for it.

1792


My requirement is like in database some defects are present and i need to clean them.To be brief for example every employee should have active assigments.So for those records which are not having status as active or null ,i need to update the roecords using API with the correct value. Client will provide a flat file for the records whch are defected.So i need to run the API for those records (flat file)and update the data in database. So my question is how to handle this requirement.Is there any existing API for this purpose?If yes then please send me the NAME. How to update the records in the database using flatfile. Any pointer will be appreciated.Thanks in advance.

1898


How would you go about increasing the buffer cache hit ratio?

2166


What is auto invoicing? Explain : oracle accounts receivable

752


difference of using cursor for loop and open,fetch,close.which one is better

1416


What is an Oracle database Full Backup?

772


default triggers available for reports

1923


How would you determine what sessions are connected and what resources they are waiting for?

1794


What is Tax Categories?

1796


what are basic modules required to implement oracle application in any oraganisation?

1893