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

Can you explain how to adjust the amount of advance already received against an invoice? : oracle accounts receivable

991


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

1474


What are the advantages of operating a database in ARCHIVELOG mode over operating it in NO ARCHIVELOG mode in Oracle?

857


Explain about party and customer in ar : oracle accounts receivable

945


What is the meaning of "Modulus" and "Alignment" in a datafile. Data file might be from any database. Data file is created through unloading data from a table. So, while loading this data into my table, I need to use these keywords. Could any one can help me regarding this?

1807


Differentiate between unidentified receipt, unapplied receipts and on account receipts? : oracle accounts receivable

1513


please send me oracle pl/sql exp resume. and also faqs...

2262


which gives Oracle R12 Financial training in delhi please give me answer its urgent?

2136


How many segment are present in Oracle Manufacturing

2038


Explain prerequisites and post activities of oracle database installation

1886


What is an Oracle database Full Backup?

841


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.

1948


I would like to study certification course in Data base adminidtrator then where would i go to study this course?

1947


Where in the Oracle directory tree structure are audit traces placed?

2379


can u give guidance abt packages of plsql

1852