DBA > Job Interview Questions > DATABASE Administrator (DBA) Interview Questions and Answers

Compare and contrast TRUNCATE and DELETE for a t

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

12. Compare and contrast TRUNCATE and DELETE for a table.

Both the truncate and delete command have the desired outcome of getting rid of all the rows in a table. The difference between the two is that the truncate command is a DDL operation and just moves the high water mark and produces a now rollback. The delete command, on the other hand, is a DML operation, which will produce a rollback and thus take longer to complete.

(Continued on next question...)

Other Job Interview Questions