"SQL Server" Problem collection removes identical records from the same table

Source: Internet
Author: User

1 overview

In SQL Server, when you delete two identical records from the same table through SQL Server Designer, the following prompt pops up:

Click "Yes"

Pop up the following prompt, do not let delete

2 Problem Solving

This is a simple question, delete it with a DELETE statement.

If you clear all the data in the table

DELETE  EmployeeInfo

If you just delete the same record

DELETE  WHERE employyeid = ' NX001 '  

3 Copyrights

    • Thank you for your reading, if there are shortcomings, welcome advice, common learning and common progress.
    • Bo main website: http://www.cnblogs.com/wangjiming/.
    • A very small number of articles using reading, reference, reference, copying, copying and pasting into a variety of ways, most of the original.
    • If you like, please recommend, if you have new ideas, welcome, email: [Email protected].
    • The blog can be reproduced, but must be well-known from the blog source.

"SQL Server" Problem collection removes identical records from the same 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.