top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

AbInitio: Explain the difference between the “truncate” and “delete” commands?

+2 votes
541 views
AbInitio: Explain the difference between the “truncate” and “delete” commands?
posted Sep 2, 2016 by Abhimanyu Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Truncate :
It is a DDL command, used to delete tables or clusters. Since it is a DDL command hence it is auto commit and Rollback can’t be performed. It is faster than delete.

Delete:
It is DML command, generally used to delete a record, clusters or tables. Rollback command can be performed , in order to retrieve the earlier deleted things. To make deleted things permanently, “commit” command should be used.

answer Sep 14, 2016 by Manikandan J
...