I am a newbie and want to ask a question about data deletion in php + mysql.

Source: Internet
Author: User
I am a newbie. I want to ask a question about how to delete a piece of data in mysql with no id specified in php + MYSQL ------ solution ---------------- there are always other conditions if no id is specified, otherwise, how can I know which one to delete? solution ------------------ There are other identification marks? solution -------------------- delete a piece of data. I am a newbie and ask a php + mysql data deletion question.
How to delete a piece of data in MYSQL with no id specified
------ Solution --------------------
If you do not specify an id, there are always other conditions. Otherwise, how do you know which one to delete?
------ Solution --------------------
There are other identification marks.
------ Solution --------------------
To delete a piece of data, you first need to know which one is to use the field data of the data to distinguish it, such as ID, NAME, TIME, etc, if no ID is specified, other fields must be specified. if the field data is not unique, the same fields will be deleted.
------ Solution --------------------
When you click "delete", the id is taken over.
------ Solution --------------------
Reference:

Click delete to delete the Database id.

There is always a condition, or how do you know which one you want to delete? this type of deletion generally transfers the unique identifier in the table. This image does not display this unique identifier, but you need to read and hide it as a basis for finding this data, just like your ID card number.
------ Solution --------------------
Reference:

Click delete to delete the Database id.


Quote: reference:

There are other identification marks.


Reference:
If you do not specify an id, there are always other conditions. Otherwise, how do you know which one to delete?


Hello, you deleted this by getting the ID ..

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.