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

TILL WHAT LEVEL OF SECURITY BO SUPPORTS?

2996


1.In a table Gender is a column in that male and female are the two data.In a single statement i have to modify all male to female and all female to male vice versa. 2.In a single query i need the count of male data,count of female and total count

16618


which one is currently in used software cmpanies.

1738


What is the use of lockboxes? Steps for lock box : oracle accounts receivable

853


i am working with OC 4.5 i have numbers in table in 10 row with some null values please tell me how to find total? Thanks

1877






what ASIS BUSINESS PROCESS IN ORACLE FINANCE

1864


where the dff data will be stored

1893


Differentiate between earned discounts and unearned discounts? : oracle accounts receivable

764


What is the difference between conversions and interfaces? : oracle accounts receivable

740


How many segment are present in Oracle Manufacturing

1898


What is auto invoicing? : oracle accounts receivable

748


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.

1827


What is an Oracle database Partial Backup?

788


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

2231


QUESTION IS THAT DURING UPLOADING DATA IN PROD SERVER,OUR EQUIPMENT TAG NUMBERS ARE NOT MATCHING WITH SAP TAG NUMBERS SO DUE TO THIS WE ARE FACING PROB, BECAUSE WHENEVER ALARM IS COMING FROM SCADA DUE MISMATCH THE NOTIFICATION IS NOT CREATED IT IS GIVING ERROR. PLEASE SUGGEST THE METHOD SO THAT THE TAG NUMBERS OF BOTH (SCADA EQUIPMENT AND SAP EQUIP) SHOULD CONCIDE.OTHERWISE WE HAVE TO GO FOR LONG PROCESS EITHER BY INTERFACE TABLE OR BY EXPORTING ALL DATA AND MAKING RIGHT CHANGES.DO YOU HAVE ANY SHORTCT METHOD PL WRITE ME. THANKS

1742