Data deletion: Delete

Source: Internet
Author: User

--Data deletion: Do I need to ask if I need to delete it when I delete it? At the same time after the project, delete is often not really deleted, but instead do delete the tag
--delete from table name where condition

Delete from Teacher
--delete the specified person information
Delete from Teacher where id=26
--Use Delete to remove the features:
--1. It is a strip of records to be deleted. Each deletion requires that the operation be logged to the log file, and the efficiency is not high.
--2. It does not allow the identity column to be recalculated from the identity seed, but to continue the identity column of the last record before

--truncate table name-no conditions
--1. Delete all records of a table at once, without paying attention to the number of records, log file minimized write mode, more efficient
--2. The identity column is recalculated from the identity seed

Data deletion: Delete

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: 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.