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

How is a process of pl/sql compiled?

584


Explain foreign key in sql?

613


What are sql commands?

489


What is meant by truncate in sql?

511


Explain the difference between rename and alias?

539






What is primary key and foreign key with example?

484


Does mysql_real_escape_string prevent sql injection?

526


What is information schema in sql?

566


What are the different types of database management systems?

519


What is sqlite used for?

516


What is the location of pre_defined_functions.

632


What does sign mean sql?

559


What is a ddl command?

523


Is primary key always clustered index?

525


Write the alter statement to enable all the triggers on the t.students table.

652