What is difference between TRUNCATE & DELETE?

Answer Posted / suneel

truncate:
---------
truncate is a ddl command.
ddl commands having auto commit.

delete:
-------
delete is a dml command.
dml commands not having auto commit.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is user in sql?

584


is mysql query is case sensitive? : Sql dba

565


Is sql procedural language?

554


What is data types in sql?

537


Why do we use joins?

568






how can we know the count/number of elements of an array? : Sql dba

576


What type of database is cloud sql?

579


What is sql and its types?

625


What are properties of the transaction?

560


What are basic techniques of indexing?

849


Any attempt to navigate programmatically to disabled form in a call_form stack is allowed?

578


How exception is different from error?

545


How many postgresql users are there, worldwide?

580


explain normalization concept? : Sql dba

592


What is sql analyzer?

545