diff between DELETE and TRUNCATE?.

Answer Posted / shree

Delete command always used with where clause.
but Truncate is not.

Delete command deletes only selected rows/records from table
which are defined in where clause.
But Truncate command deletes all records from the Table
without using where clause.

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 an Oracle index?

1179


What is a sub query and what are the different types of subqueries?

626


Explain compound trigger in oracle?

551


Differentiate between post-database commit and post-form commit?

545


How to define a procedure inside another procedure?

545






What are a query and state the different types of queries and their uses?

512


How many memory layers are in the oracle shared pool?

643


What are the oracle built-in data types?

564


Which is better Oracle or MS SQL? Why?

3978


How to start instance with a minimal initialization parameter file?

539


What is oracle latest version?

586


master table and child table performances and comparisons in Oracle ?

1668


What is a trigger and what are its types?

615


How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?

2395


How to define a record variable to store a table row?

579