Delete Vs TRUNCATE VS Drop

          

Delete Vs TRUNCATE VS Drop

<<Previous  Next>>

Oracle - Delete Vs TRUNCATE VS Drop - April 10, 2009 at 11:00 AM

Delete Vs TRUNCATE VS Drop  

The DELETE command is used to remove some or all rows from a table. After performing a DELETE operation you need to COMMIT or ROLLBACK the transaction to make the change permanent or to undo it. It causes all DELETE triggers on the table to fire.

TRUNCATE removes all rows from a table. The operation cannot be rolled back and no triggers will be fired. TRUNCATE is faster and doesn't use as much space as a DELETE.

The DROP command removes a table from the database. All the tables' rows, indexes and privileges will also be removed. No DML triggers will be fired. The operation cannot be rolled back.

Also read
What is Nested Table?

Nested Table is a table inside a table. It can have several rows for each row of its parent table............

What is clusters?

Clusters group together tables that share common columns. These tables are often used together.........

Explain how to add a new column to an existing Table in Oracle.

Use the ALTER TABLE command to do this ALTER TABLE employee ADD (department VARCHAR2);.........

How many types of Tables supported by Oracle? Explain them

Ordinary (heap-organized) table, Clustered table, Index-organized table, Partitioned table............

<<Previous  Next>>



Write your comment - Share Knowledge and Experience


 

 
Interview questions
Latest MCQs
» General awareness - Banking » ASP.NET » PL/SQL » Mechanical Engineering
» IAS Prelims GS » Java » Programming Language » Electrical Engineering
» English » C++ » Software Engineering » Electronic Engineering
» Quantitative Aptitude » Oracle » English » Finance
Home | About us | Sitemap | Contact us | We are hiring