What is Difference Between delete and Truncate?

Answer Posted / shankar

DELETE and TRUNCATE both delete table from database, but

DELETE - temperorily deletes the table so we can undo the
table.

TRUNCATE - Perminently delete the table from database so we
cant undo it.

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is function and procedure?

561


What is sap sql?

532


How many indexes can be created on a table in sql?

494


Why is a primary key important?

542


What are the indexing methods?

570






Is sql a backend?

544


Where is pl sql used?

513


What is a sql*loader control file?

613


List and explain the different types of join clauses supported in ansi-standard sql?

807


tell us something about heap tables. : Sql dba

596


What is a rank in sql?

534


Can we insert in sql function?

534


What are different types of keys?

519


What is dense_rank in sql?

539


What is the difference between partition and index?

478