30.4.11

DIFF BETWEEN TRUNCATE AND DELETE

----- DIFF BETWEEN TRUNCATE AND DELETE


1. TRUNCATE WILL DELETE THE ENTIRE TABLE @ A STRETCH DELETE WILL DELETE EACH RECORD
2. NO LOGGING IN TRUNCATE ... LOGGING DELETE
3. PROCESS IS TOO FAST AND WE CAN RECOVER THE DATA IN TRUNCATE


Cheers,
Venkatesan Prabu .J
Head - www.kaashivinfotech.com
http://venkattechnicalblog.blogspot.com/

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. I think your post is very confusing and the second point is completely wrong.

    Check http://vadivel.blogspot.com/2004/06/delete-vs-truncate-statement.html where I found the differences between Delete and Truncate to be more meaningful.

    ReplyDelete
  3. I think you meant 'we can't recover data in truncate' instead of 'we can recover data'.

    ReplyDelete