what is the difference between TRUNCATE and DELETE command
in SQL

Answer Posted / kavita sahu

1. Truncate is a DDL command and delete is a DML command
2. Truncate delete all records from table there is no
ROLLEDBACK it always Commit without giving the Commit
3. Truncate is much faster than Delete
4. Truncate you can't use where clause
DELETE you can use where clause

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give two methods you could use to determine what DDL changes have been made.

6009


What is the Difference between the Person_Type_id column in the per_all_people_f and per_person_type_usages_f

3979


which one is currently in used software cmpanies.

1651


How would you determine who has added a row to a table?

1785


What is the difference between oracle media recovery and crash recovery?

663






What is the mandatory setup in cyclecount ?

2175


What are the interface tables used for ar invoices, customers, receipts for conversion process? : oracle accounts receivable

747


CAN AUNIVERSE BE LINKED TO MORE THAN ONE DATASOURCE?

1604


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

660


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

2032


What is the use of lockboxes? : oracle accounts receivable

645


Why more redos are generated when the oracle database is in begin backup mode?

655


Explain the use of table functions.

1787


can u give guidance abt packages of plsql

1636


default triggers available for reports

1753