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 create a new oracle data file?

766


nw i'm doing MBA system and planning to do oracle,database management.tell me that whether it is useful r not?.refer any course for my carrier pls

1954


What are the most common interview questions on ETL Testing for experience?

849


What is Java Pool in Oracle?

831


How would you begin to troubleshoot an ORA-3113 error?

1827


1) Does oracle have any table which contain all the exceptions and it's code internally?

1510


What is a subquery?

827


15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.

1996


What is redo log?

801


In what script is snap$ created? In what script is the scott/tiger schema created?

2469


What is an Oracle index?

1387


How to run queries on external tables?

778


Explain about achiever in sql?

795


Explain the use of consistent option in exp command.

729


Iam learning oracle developer 2000.. can anyone give me then tutorials sites or PDF related to developer 2000 please send me the details @ mak2786@gmail.com thanks Arun

1871