The actual procedure for MySQL to delete form data

Source: Internet
Author: User

This article mainly describes how to delete form data from MySQL and how to describe the actual application code. The following is a detailed description of this article, I hope it will help you in this regard.

MySQL deletes form data 1

Use the DELETE statement to DELETE the data records in the form. Xiaohong is no longer in use. You have to DELETE the records.

 
 
  1. MySQL (best combination with PHP)> delete from emp where emp_name = 'small red ';

After successful execution, the following information is displayed:

 
 
  1. Query OK, 1 row affected (0.06 sec) 

If the where clause is omitted, records in all tables are deleted.

MySQL deletes form data 2

Use DRO to delete a table

(Create a database dt and a temporary table fuck)

 
 
  1. MySQL (best combination with PHP)> drop table fuck;

MySQL deletes form data 3

Delete a database using DRO

 
 
  1. MySQL (the best combination with PHP)> drop database dt;

The above content is an introduction to MySQL table deletion. I hope you will get some benefits.

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.