What is difference between TRUNCATE & DELETE?

Answer Posted / ram kumar

1.Both are same but a little bit difference between them

2.Truncate removes all the rows in the table and it cannot
be rolledback bcoz its a DDL

3.Delete removes the particular record u want in the table
and it can be rolledback bcoz its a DML

4.Truncate is Unconditional and Delete is Conditional

Regards,
Ram Kumar...

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is sql entity?

526


How to create your own reports in sql developer?

533


how mysql optimizes distinct? : Sql dba

549


What is data types in sql?

531


What is tuple in sql?

539






How can you save or place your msg in a table?

519


What is scalar and vector?

524


What is a table?

564


How do you get column names only for a table (sql server)?

663


What is normalisation in sql?

544


How to raise user-defined exception with custom sqlerrm ?

676


What do you understand by pl/sql cursors?

546


What is crud sql?

534


what is datawarehouse? : Sql dba

563


How does rowid help in running a query faster?

963