Oracle Certification Exam Question:
Download Job Interview Questions and Answers PDF
what is the difference between TRUNCATE, DELETE, DROP?
Answer:
1) Drop will drop the records from the table along with its structure.All the indexes associated with it will also deleted and there is no rollback.
2) Delete will deletes the records of the table but the structure of the table is retained back.It is a DML operation which is slower but provides rollback facility.
3) Truncate is a DDL command which is faster ,retain structure of the table and rollback is possible.It allocates memory usually after truncating so structure is retained.
2) Delete will deletes the records of the table but the structure of the table is retained back.It is a DML operation which is slower but provides rollback facility.
3) Truncate is a DDL command which is faster ,retain structure of the table and rollback is possible.It allocates memory usually after truncating so structure is retained.
Download Oracle Certification Interview Questions And Answers
PDF