Oracle Database SQL — Question 22

Which statement is true about TRUNCATE and DELETE?

Answer options

Correct answer: B

Explanation

The correct answer is B because TRUNCATE cannot be executed when foreign key constraints are in place, ensuring data integrity. Option A is incorrect since DELETE is generally slower than TRUNCATE with multiple indexes and triggers. Option C is true, but it does not address the relationship between TRUNCATE and DELETE. Option D is also false as TRUNCATE is typically faster than DELETE for large tables.