The difference between Delete, truncate, drop delete data

1.delete delete statement, but also to restore the data.

Truncate table is deleted once all the data from the single table does not delete stored records logged, delete rows can not be restored.

(2) table and index space occupied.

   When the table is Truncate, the table and index space occupied will return to its original size,

   delete operation does not reduce the space occupied by the table or index.

drop statement table space occupied by the fully relieved.

(3) In general, drop> truncate> delete

(4) Application.

    TRUNCATE can only TABLE; DELETE can be a table and view

(5) TRUNCATE and DELETE to delete only the data, DROP entire table is deleted (and data structure).

Wait.

Guess you like

Origin www.cnblogs.com/txf0324/p/11038377.html