MYSQL TRUNCATE TABLE

Source: Internet
Author: User

Get ready:

To say that truncate table is going to have to talk about the delete all two of them can be used to delete data rows from the table! On the face of it, delete deleted slowly, TRUNCATE TABLE

Faster,

Delete:

It is an honest line of deleted data, write logs, and the data it deletes can be recovered through the log.

Trunate table:

It does not do this, it simply marks the data page as an empty page (there is no data row), so the log is much smaller.

Then

It is also not a ' silver bullet ' the data deleted by it is unlikely to be recovered through the log because it only notes which pages it has flagged.

This information is not sufficient to support recovery of the table's data rows. It is only possible to restore the previous data in a way that restores the database.

MYSQL TRUNCATE TABLE

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.