difference between truncate and delete ,drop?

Answer Posted / ashu singh

Drop deletes the table along with its structure from the database.
Delete command deletes the records from the table and it also deletes the table space allocated in the database.

Truncate is similar to Delete but it does not delete the table space from the database.

Drop and Truncate are the DDL command hence can't be rolled back whereas Delete is a DML command and can be rolled back.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to declare a local variable?

592


In which language oracle has been developed?

641


What would you do with an in-doubt distributed transaction?

1466


Explain self joins in oracle?

558


What is a table index?

559






What to do if the binary spfile is wrong for the default instance?

559


How to delete a column in an existing table in oracle?

601


What are ddl statements in oracle?

588


what are the advantages of running a database in archive log mode?

1729


Can we create trigger on materialized view in oracle?

562


What is program global area (pga) in oracle?

602


Difference between pre-select and pre-query

573


What is key preserved table?

558


Please explain compound trigger in oracle?

594


interview questions with answer for cts

2080