What is Difference Between delete and Truncate?

Answer Posted / nandini sett

Both delete and Trunate are DML or Data Manupilating
Language.
Both statements --- Delete table_name and Truncate table
table_name --- deletes all rows.
Truncate Table works faster than delete.
Truncate table does not support where clause and truncate
doe not fire a trigger. When truncate is used the deleted
rows are not entered in transaction log.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to calculate the difference between two dates? : Sql dba

541


What is the difference between rename and alias?

699


what is bcp? When does it used? : Sql dba

511


Can we use ddl statements in stored procedure?

691


What are dml commands?

521






does sql support programming? : Sql dba

603


what is myisam? : Sql dba

568


What are analytic functions in sql?

543


How to check if a column is nullable before setting to nullable?

580


How do you write a complex sql query?

577


What is partition in sql query?

507


What is partition by in sql?

565


What does the acronym acid stand for in database management?

534


What is a record in pl/sql?

542


What is the use of stored procedures?

513